Skip to content

Commit 328e481

Browse files
tomutaawesomekling
authored andcommitted
Kernel: Halt all processors on assertion failure
1 parent 3ffdaab commit 328e481

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Kernel/Arch/i386/CPU.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,9 +2019,7 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const
20192019
MM.enter_process_paging_scope(*process);
20202020

20212021
Kernel::dump_backtrace();
2022-
asm volatile("hlt");
2023-
for (;;)
2024-
;
2022+
Processor::halt();
20252023
}
20262024
#endif
20272025

0 commit comments

Comments
 (0)