diff options
| -rw-r--r-- | arch/x86_64/kapi/cpu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86_64/kapi/cpu.cpp b/arch/x86_64/kapi/cpu.cpp index 11a12656..63ed579c 100644 --- a/arch/x86_64/kapi/cpu.cpp +++ b/arch/x86_64/kapi/cpu.cpp @@ -5,6 +5,7 @@ #include <kapi/system.hpp> #include <atomic> +#include <utility> namespace kapi::cpu { @@ -25,7 +26,7 @@ namespace kapi::cpu auto halt() -> void { asm volatile("1: hlt\njmp 1b"); - __builtin_unreachable(); + std::unreachable(); } auto current_id() -> id |
