diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-09-03 17:49:40 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-09-03 17:49:40 +0200 |
| commit | 0467dc8f98ccef42290f7f7bd95060bfe198c035 (patch) | |
| tree | 8936d6b477d59603762bf425de3203a1129ca151 /arch/x86_64 | |
| parent | 5668a7c45f23820862e26fe018b69df46cf5ebe8 (diff) | |
| download | kernel-0467dc8f98ccef42290f7f7bd95060bfe198c035.tar.xz kernel-0467dc8f98ccef42290f7f7bd95060bfe198c035.zip | |
x86_64: replace unreachable builtin
Diffstat (limited to 'arch/x86_64')
| -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 |
