diff options
Diffstat (limited to 'kern')
| -rw-r--r-- | kern/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | kern/src/kstd.cpp | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/kern/CMakeLists.txt b/kern/CMakeLists.txt index 52c2cb5..677fdc2 100644 --- a/kern/CMakeLists.txt +++ b/kern/CMakeLists.txt @@ -4,6 +4,7 @@ add_library("os::kern" ALIAS "kern") target_sources("kern" PRIVATE "src/abort.cpp" "src/error.cpp" + "src/kstd.cpp" "src/main.cpp" "src/print.cpp" ) diff --git a/kern/src/kstd.cpp b/kern/src/kstd.cpp new file mode 100644 index 0000000..1b7050b --- /dev/null +++ b/kern/src/kstd.cpp @@ -0,0 +1,10 @@ +#include "kern/error.hpp" + +#include <kstd/bits/os.hpp> + +namespace kstd::os +{ + + auto panic(std::string_view message, std::source_location location) -> void { teachos::panic(message, location); } + +} // namespace kstd::os
\ No newline at end of file |
