mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Kernel: Move __assertion_failed to aarch64/Panic.cpp
This is for an upcoming change to add the Kernel namespace to the init.cpp file.
This commit is contained in:
parent
d451bdec6f
commit
9282e0db16
2 changed files with 13 additions and 15 deletions
|
@ -103,17 +103,6 @@ void __stack_chk_fail()
|
|||
Kernel::Processor::halt();
|
||||
}
|
||||
|
||||
using namespace Kernel;
|
||||
|
||||
[[noreturn]] void __assertion_failed(char const* msg, char const* file, unsigned line, char const* func)
|
||||
{
|
||||
critical_dmesgln("ASSERTION FAILED: {}", msg);
|
||||
critical_dmesgln("{}:{} in {}", file, line, func);
|
||||
|
||||
// Used for printing a nice backtrace!
|
||||
PANIC("Aborted");
|
||||
}
|
||||
|
||||
extern "C" void exception_common(TrapFrame const* const trap_frame)
|
||||
{
|
||||
constexpr bool print_stack_frame = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue