aboutsummaryrefslogtreecommitdiff
path: root/include/arch/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/cpu.h')
-rw-r--r--include/arch/cpu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/arch/cpu.h b/include/arch/cpu.h
index 23b2911..763ebba 100644
--- a/include/arch/cpu.h
+++ b/include/arch/cpu.h
@@ -15,7 +15,15 @@
#include "../../arch/riscv32/include/cpu.h"
#endif
+/**
+ * Get current CPU ID.
+ * ID must be in range \c 0 .. \c num_cpus, where \c num_cpus is the number of
+ * cpus on this system.
+ *
+ * @return Current CPU ID.
+ */
id_t cpu_id();
+
/* TODO: add more cpu handling functions */
#endif /* APOS_CPU_H */