aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-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