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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/arch/cpu.h b/include/arch/cpu.h
index 8913b85..4fe0c99 100644
--- a/include/arch/cpu.h
+++ b/include/arch/cpu.h
@@ -8,6 +8,7 @@
*/
#include <apos/types.h>
+#include <apos/tcb.h>
#if defined(riscv64)
#include "../../arch/riscv64/include/cpu.h"
@@ -24,6 +25,14 @@
*/
id_t cpu_id();
-/** \todo add more cpu handling functions */
+/**
+ * Assign tcb to current cpu.
+ *
+ * @param t \ref tcb to assign to current cpu.
+ */
+void cpu_assign(struct tcb *t);
+
+/** \todo Should init be assigned one thread per core, or how should I handle
+ * giving out CPU IDs? */
#endif /* APOS_CPU_H */