diff --git a/kernel/include/kernel/Panic.h b/kernel/include/kernel/Panic.h index 2e5e148e34..dadb4b3579 100644 --- a/kernel/include/kernel/Panic.h +++ b/kernel/include/kernel/Panic.h @@ -24,7 +24,9 @@ namespace Kernel kprint(message, args...); kprint("\e[m\n"); } - asm volatile("cli; hlt"); + asm volatile("cli"); + for (;;) + asm volatile("hlt"); __builtin_unreachable(); }