Kernel: panic now disables interrupts as the first thing

This commit is contained in:
Bananymous 2023-03-01 20:16:26 +02:00
parent 9756de02ef
commit ba8c4dbc7f
1 changed files with 1 additions and 1 deletions

View File

@ -13,10 +13,10 @@ namespace Kernel
__attribute__((__noreturn__))
static void panic_impl(const char* file, int line, const char* message, Args... args)
{
asm volatile("cli");
derrorln("Kernel panic at {}:{}", file, line);
derrorln(message, args...);
Debug::dump_stack_trace();
asm volatile("cli");
for (;;)
asm volatile("hlt");
__builtin_unreachable();