blob: 041404e0b2a7f2c3ddc303c026920aa99261f35b (
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/cio.hpp"
namespace teachos::system
{
auto panic(std::string_view message, std::source_location location) -> void
{
cio::println_error("!!!Kernel Panic!!! ");
cio::println_error(message);
cio::println_error(location.file_name());
cio::println_error(location.function_name());
halt();
}
} // namespace teachos::system
|