mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 16:10:20 +00:00
7ca3d413f7
This does not add any functional changes
21 lines
433 B
C++
21 lines
433 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/Format.h>
|
|
#include <Kernel/Arch/x86/Processor.h>
|
|
#include <Kernel/KSyms.h>
|
|
#include <Kernel/Panic.h>
|
|
|
|
namespace Kernel {
|
|
|
|
void __panic(const char* file, unsigned int line, const char* function)
|
|
{
|
|
critical_dmesgln("at {}:{} in {}", file, line, function);
|
|
dump_backtrace();
|
|
Processor::halt();
|
|
}
|
|
|
|
}
|