stivale: Make unaligned stack request a warning rather than a panic

This commit is contained in:
mintsuki 2021-09-19 14:42:40 +02:00
parent 04732c6221
commit 521cb1728a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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