/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include namespace Kernel { void __panic(const char* file, unsigned int line, const char* function) { dmesgln("at {}:{} in {}", file, line, function); dump_backtrace(); Processor::halt(); } }