aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kapi/system.cpp')
-rw-r--r--arch/x86_64/src/kapi/system.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86_64/src/kapi/system.cpp b/arch/x86_64/src/kapi/system.cpp
new file mode 100644
index 0000000..2d4c3fe
--- /dev/null
+++ b/arch/x86_64/src/kapi/system.cpp
@@ -0,0 +1,12 @@
+#include "kapi/system.hpp"
+
+namespace teachos::system
+{
+
+ auto halt() -> void
+ {
+ asm volatile("1: hlt\njmp 1b");
+ __builtin_unreachable();
+ }
+
+} // namespace teachos::system