From cf500b301ee3f518ea391ea21e39853b7e7a37c8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 26 Jul 2026 20:33:10 +0200 Subject: kapi: implement a simple, tracked mutex --- arch/x86_64/kapi/cpu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (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 c45703e5..100f53df 100644 --- a/arch/x86_64/kapi/cpu.cpp +++ b/arch/x86_64/kapi/cpu.cpp @@ -82,4 +82,10 @@ namespace kapi::cpu return core_index > 0; } + auto current_id() -> id + { + // TODO: implement actual ID reading once APs are being set up. + return id{.value = 0}; + } + } // namespace kapi::cpu -- cgit v1.2.3