From e1dc790155414d3b2d104dfd3847c3f0c44e6658 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Thu, 16 Nov 2023 22:10:54 -0800 Subject: [PATCH] [Zion] Clear interrupts on panic to actually hault the machine. --- zion/debug/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zion/debug/debug.h b/zion/debug/debug.h index a767596..567bf79 100644 --- a/zion/debug/debug.h +++ b/zion/debug/debug.h @@ -25,7 +25,7 @@ template void panic(const char* str, Args... args) { dbgln(str, args...); dbgln("PANIC"); - asm volatile("hlt;"); + asm volatile("cli; hlt;"); } #define UNREACHABLE \