From 328e481ee97897ea3cc0c915e0a8d5e1b94171bc Mon Sep 17 00:00:00 2001 From: Tom Date: Sun, 25 Oct 2020 22:27:27 -0600 Subject: Kernel: Halt all processors on assertion failure --- Kernel/Arch/i386/CPU.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Kernel/Arch') diff --git a/Kernel/Arch/i386/CPU.cpp b/Kernel/Arch/i386/CPU.cpp index 73a9e50174..1ee3884a9e 100644 --- a/Kernel/Arch/i386/CPU.cpp +++ b/Kernel/Arch/i386/CPU.cpp @@ -2019,9 +2019,7 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const MM.enter_process_paging_scope(*process); Kernel::dump_backtrace(); - asm volatile("hlt"); - for (;;) - ; + Processor::halt(); } #endif -- cgit v1.2.3