blob: a5229fdf633d3d1535e3ec5cc8b62e5d6d659ca0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "kern/error.hpp"
#include "arch/system.hpp"
#include "kern/print.hpp"
namespace teachos
{
auto panic(std::string_view message, std::source_location location) -> void
{
println_error("!!!Kernel Panic!!! ");
println_error(message);
println_error(location.file_name());
println_error(location.function_name());
arch::system::halt();
}
} // namespace teachos
|