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