Init: Call efficient_halt() on magic number mismatch instead of busy-looping
This commit is contained in:
parent
9569385691
commit
74aa30a44f
@ -15,8 +15,7 @@ void Init::check_magic()
|
||||
if (memcmp(bootboot.magic, BOOTBOOT_MAGIC, 4))
|
||||
{
|
||||
kerrorln("ERROR: Invalid magic value from bootloader");
|
||||
for (;;)
|
||||
;
|
||||
CPU::efficient_halt();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user