aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-26 20:33:10 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-26 20:33:10 +0200
commitcf500b301ee3f518ea391ea21e39853b7e7a37c8 (patch)
treebbaa5d9c31d47714c61ab9447efc783c365b85ed /arch/x86_64
parent4ab9ce4a821e477f097f19e94a0239299fbe25ea (diff)
downloadkernel-cf500b301ee3f518ea391ea21e39853b7e7a37c8.tar.xz
kernel-cf500b301ee3f518ea391ea21e39853b7e7a37c8.zip
kapi: implement a simple, tracked mutex
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/kapi/cpu.cpp6
1 files changed, 6 insertions, 0 deletions
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