[Zion] Clear interrupts on panic to actually hault the machine.
This commit is contained in:
parent
40ea359e9f
commit
e1dc790155
|
@ -25,7 +25,7 @@ template <typename... Args>
|
|||
void panic(const char* str, Args... args) {
|
||||
dbgln(str, args...);
|
||||
dbgln("PANIC");
|
||||
asm volatile("hlt;");
|
||||
asm volatile("cli; hlt;");
|
||||
}
|
||||
|
||||
#define UNREACHABLE \
|
||||
|
|
Loading…
Reference in New Issue