mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
22 lines
435 B
C++
22 lines
435 B
C++
/*
|
|
* Copyright (c) 2024, Sönke Holz <sholz8530@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/Format.h>
|
|
|
|
#include <Kernel/EFIPrekernel/DebugOutput.h>
|
|
#include <Kernel/EFIPrekernel/Panic.h>
|
|
#include <Kernel/EFIPrekernel/Runtime.h>
|
|
|
|
namespace Kernel {
|
|
|
|
[[noreturn]] void __panic(char const* file, unsigned int line, char const* function)
|
|
{
|
|
dbgln("at {}:{} in {}", file, line, function);
|
|
|
|
halt();
|
|
}
|
|
|
|
}
|