stivale: Make unaligned stack request a warning rather than a panic
This commit is contained in:
parent
04732c6221
commit
521cb1728a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue