mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
7ca3d413f7
This does not add any functional changes
22 lines
433 B
C++
22 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();
|
|
}
|
|
|
|
}
|