aboutsummaryrefslogtreecommitdiff
path: root/kapi/include
diff options
context:
space:
mode:
Diffstat (limited to 'kapi/include')
-rw-r--r--kapi/include/kapi/cpu.hpp13
-rw-r--r--kapi/include/kapi/system.hpp2
2 files changed, 13 insertions, 2 deletions
diff --git a/kapi/include/kapi/cpu.hpp b/kapi/include/kapi/cpu.hpp
new file mode 100644
index 0000000..673deab
--- /dev/null
+++ b/kapi/include/kapi/cpu.hpp
@@ -0,0 +1,13 @@
+#ifndef TEACHOS_KAPI_CPU_HPP
+#define TEACHOS_KAPI_CPU_HPP
+
+namespace teachos::cpu
+{
+ /**
+ * @brief Halt the CPU, effectively terminating kernel execution.
+ *
+ */
+ [[noreturn]] auto halt() -> void;
+} // namespace teachos::cpu
+
+#endif
diff --git a/kapi/include/kapi/system.hpp b/kapi/include/kapi/system.hpp
index 0d4f2c9..b0b0e28 100644
--- a/kapi/include/kapi/system.hpp
+++ b/kapi/include/kapi/system.hpp
@@ -6,8 +6,6 @@
namespace teachos::system
{
- [[noreturn]] auto halt() -> void;
-
[[noreturn]] auto panic(std::string_view message, std::source_location = std::source_location::current()) -> void;
} // namespace teachos::system