aboutsummaryrefslogtreecommitdiff
path: root/include/arch/cpu.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-06-11 23:35:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-06-11 23:35:33 +0300
commit62ee0f7e1936a9eccb55fa360a1dce223819e0b8 (patch)
tree2c67698cac4e94cd7643f7acf19f1ada12f37472 /include/arch/cpu.h
parent56fb0b774a8e89be1cb7ab1e5f464bbedd19fb22 (diff)
downloadkmi-62ee0f7e1936a9eccb55fa360a1dce223819e0b8.tar.gz
kmi-62ee0f7e1936a9eccb55fa360a1dce223819e0b8.zip
continue documentation
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 */