#include "kapi/system.hpp" #include "kapi/cio.hpp" #include "kapi/cpu.hpp" #include #include namespace teachos::system { [[gnu::weak]] auto panic(std::string_view message, std::source_location location) -> void { cio::println_error("[PANIC] in {} : {} @ {}:{}", location.function_name(), message, location.file_name(), location.line()); cpu::halt(); } } // namespace teachos::system