From 343dda629cc2274ccdd57d2c447a6fad2c19318d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 3 Dec 2022 18:19:07 +0200 Subject: [PATCH] Kernel panic now halts the system --- kernel/include/kernel/panic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kernel/panic.h b/kernel/include/kernel/panic.h index 8b283962..c6b31743 100644 --- a/kernel/include/kernel/panic.h +++ b/kernel/include/kernel/panic.h @@ -12,7 +12,7 @@ namespace Kernel kprint("Kernel panic: "); kprint(message, args...); kprint("\n"); - asm volatile("hlt"); + asm volatile("cli; hlt"); __builtin_unreachable(); }