diff options
author | Tom <tomut@yahoo.com> | 2020-10-25 22:27:27 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-26 08:57:25 +0100 |
commit | 328e481ee97897ea3cc0c915e0a8d5e1b94171bc (patch) | |
tree | 657bc560cc59ec704dcdf0b1ae219ecf6ed7af23 /Kernel/Arch/i386 | |
parent | 3ffdaabe10c569e73b9c5d4bf5da200e1f749f64 (diff) | |
download | serenity-328e481ee97897ea3cc0c915e0a8d5e1b94171bc.zip |
Kernel: Halt all processors on assertion failure
Diffstat (limited to 'Kernel/Arch/i386')
-rw-r--r-- | Kernel/Arch/i386/CPU.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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 |