Init: Call efficient_halt() on magic number mismatch instead of busy-looping

This commit is contained in:
apio 2022-12-30 18:36:22 +01:00
parent 9569385691
commit 74aa30a44f
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -15,8 +15,7 @@ void Init::check_magic()
if (memcmp(bootboot.magic, BOOTBOOT_MAGIC, 4)) if (memcmp(bootboot.magic, BOOTBOOT_MAGIC, 4))
{ {
kerrorln("ERROR: Invalid magic value from bootloader"); kerrorln("ERROR: Invalid magic value from bootloader");
for (;;) CPU::efficient_halt();
;
} }
} }