blob: 3ae3f29aac994ac269180f42054d3f818e612f6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "kapi/system.hpp"
#include "kapi/cio.hpp"
#include "kapi/cpu.hpp"
namespace teachos::system
{
[[gnu::weak]]
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());
cpu::halt();
}
} // namespace teachos::system
|