aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/system.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-07-14 16:25:00 +0000
committerFelix Morgner <felix.morgner@ost.ch>2025-07-14 16:25:00 +0000
commitec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3 (patch)
treef66048c99b5015bf9cb7603b7be09c2a28d766ee /arch/x86_64/src/system.cpp
parent25483b7af8df6b08d460f807fda04c6d409bd44e (diff)
downloadteachos-ec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3.tar.xz
teachos-ec572bff8150e2f8cd2dc99e053c5e8c8a0b99e3.zip
arch: prepare interfaces
Diffstat (limited to 'arch/x86_64/src/system.cpp')
-rw-r--r--arch/x86_64/src/system.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86_64/src/system.cpp b/arch/x86_64/src/system.cpp
new file mode 100644
index 0000000..60ebf0e
--- /dev/null
+++ b/arch/x86_64/src/system.cpp
@@ -0,0 +1,12 @@
+#include "arch/system.hpp"
+
+namespace teachos::arch::system
+{
+
+ auto halt() -> void
+ {
+ asm volatile("1: hlt\njmp 1b");
+ __builtin_unreachable();
+ }
+
+} // namespace teachos::arch::system