[Zion] Clear interrupts on panic to actually hault the machine.

This commit is contained in:
Drew Galbraith 2023-11-16 22:10:54 -08:00
parent 40ea359e9f
commit e1dc790155
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ template <typename... Args>
void panic(const char* str, Args... args) { void panic(const char* str, Args... args) {
dbgln(str, args...); dbgln(str, args...);
dbgln("PANIC"); dbgln("PANIC");
asm volatile("hlt;"); asm volatile("cli; hlt;");
} }
#define UNREACHABLE \ #define UNREACHABLE \