stivale: Make unaligned stack request a warning rather than a panic
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
