From 0467dc8f98ccef42290f7f7bd95060bfe198c035 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 3 Sep 2026 17:49:40 +0200 Subject: x86_64: replace unreachable builtin --- arch/x86_64/kapi/cpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/x86_64/kapi/cpu.cpp') 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 #include +#include 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 -- cgit v1.2.3