aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/kapi
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-09-03 17:49:40 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-09-03 17:49:40 +0200
commit0467dc8f98ccef42290f7f7bd95060bfe198c035 (patch)
tree8936d6b477d59603762bf425de3203a1129ca151 /arch/x86_64/kapi
parent5668a7c45f23820862e26fe018b69df46cf5ebe8 (diff)
downloadkernel-0467dc8f98ccef42290f7f7bd95060bfe198c035.tar.xz
kernel-0467dc8f98ccef42290f7f7bd95060bfe198c035.zip
x86_64: replace unreachable builtin
Diffstat (limited to 'arch/x86_64/kapi')
-rw-r--r--arch/x86_64/kapi/cpu.cpp3
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