From 521cb1728a893f1122f0b5ce002f8e423f89e016 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sun, 19 Sep 2021 14:42:40 +0200 Subject: [PATCH] stivale: Make unaligned stack request a warning rather than a panic --- stage23/protos/stivale.c | 2 +- stage23/protos/stivale2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stage23/protos/stivale.c b/stage23/protos/stivale.c index be0d8756..13d3dbc4 100644 --- a/stage23/protos/stivale.c +++ b/stage23/protos/stivale.c @@ -176,7 +176,7 @@ void stivale_load(char *config, char *cmdline) { // The spec says the stack has to be 16-byte aligned if ((stivale_hdr.stack & (16 - 1)) != 0) { - panic("stivale: Requested stack is not 16-byte aligned\n"); + print("stivale: WARNING: Requested stack is not 16-byte aligned\n"); } // It also says the stack cannot be NULL for 32-bit kernels diff --git a/stage23/protos/stivale2.c b/stage23/protos/stivale2.c index 4928bb12..a99f40ea 100644 --- a/stage23/protos/stivale2.c +++ b/stage23/protos/stivale2.c @@ -196,7 +196,7 @@ failed_to_load_header_section: // The spec says the stack has to be 16-byte aligned if ((stivale2_hdr.stack & (16 - 1)) != 0) { - panic("stivale2: Requested stack is not 16-byte aligned"); + print("stivale2: WARNING: Requested stack is not 16-byte aligned\n"); } // It also says the stack cannot be NULL for 32-bit kernels