mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00:00
Kernel: PANIC() instead of manually halting the processor in abort()
This commit is contained in:
parent
6b606771b5
commit
54c54dabdd
1 changed files with 2 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <Kernel/Arch/x86/CPU.h>
|
||||
#include <Kernel/Arch/x86/Processor.h>
|
||||
#include <Kernel/KSyms.h>
|
||||
#include <Kernel/Panic.h>
|
||||
#include <Kernel/Process.h>
|
||||
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue