From 54c54dabdd89ec2b418d43deb369d8b56979f0ca Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 26 Jul 2021 01:56:07 +0430 Subject: [PATCH] Kernel: PANIC() instead of manually halting the processor in abort() --- Kernel/Arch/x86/common/CPU.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Kernel/Arch/x86/common/CPU.cpp b/Kernel/Arch/x86/common/CPU.cpp index 936e36dd40..1acd2e7944 100644 --- a/Kernel/Arch/x86/common/CPU.cpp +++ b/Kernel/Arch/x86/common/CPU.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func) @@ -27,10 +28,7 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const if (process) MM.enter_process_paging_scope(*process); - Kernel::dump_backtrace(); - Processor::halt(); - - abort(); + PANIC("Aborted"); } [[noreturn]] void _abort()