aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi/system.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-24 15:37:36 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-24 15:37:36 +0000
commitc6629ba11c17601695b0542d7d1d1bf5dc036d84 (patch)
tree7c0c5fc0f334d92629640b79aee2dc6f0dea03dd /arch/x86_64/kapi/system.cpp
parent4edbe94ce1266c9acc6a695fedf1d2edd4ce11cd (diff)
downloadteachos-c6629ba11c17601695b0542d7d1d1bf5dc036d84.tar.xz
teachos-c6629ba11c17601695b0542d7d1d1bf5dc036d84.zip
build: clean up configuration
Diffstat (limited to 'arch/x86_64/kapi/system.cpp')
-rw-r--r--arch/x86_64/kapi/system.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86_64/kapi/system.cpp b/arch/x86_64/kapi/system.cpp
new file mode 100644
index 0000000..2d4c3fe
--- /dev/null
+++ b/arch/x86_64/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