diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 15:37:36 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 15:37:36 +0000 |
| commit | c6629ba11c17601695b0542d7d1d1bf5dc036d84 (patch) | |
| tree | 7c0c5fc0f334d92629640b79aee2dc6f0dea03dd /arch/x86_64/kapi/system.cpp | |
| parent | 4edbe94ce1266c9acc6a695fedf1d2edd4ce11cd (diff) | |
| download | teachos-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.cpp | 12 |
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 |
