diff options
Diffstat (limited to 'kapi/src')
| -rw-r--r-- | kapi/src/system.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kapi/src/system.cpp b/kapi/src/system.cpp new file mode 100644 index 0000000..c3b1c5e --- /dev/null +++ b/kapi/src/system.cpp @@ -0,0 +1,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 |
