aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-29 18:47:16 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-29 18:49:28 +0200
commit4e5595a089c815febd7a0d42ab62940bf13f73ac (patch)
tree322f35d9315e9966de8a66052811858df0144085 /common/tcb.c
parenta12e50e5a7dae52ed8bd5a24cc6576371e20985b (diff)
downloadkmi-4e5595a089c815febd7a0d42ab62940bf13f73ac.tar.gz
kmi-4e5595a089c815febd7a0d42ab62940bf13f73ac.zip
Preparations for refactoring
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/tcb.c b/common/tcb.c
index 8a1e95e..1547d49 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -1,4 +1,5 @@
#include <apos/tcb.h>
+#include <apos/cpu.h>
#include <apos/utils.h>
#include <apos/sp_tree.h>
@@ -64,8 +65,5 @@ struct tcb *get_tcb(id_t pid)
struct tcb *cur_tcb()
{
- /* TODO: probably keep an array of processor ID's somewhere where each
- * ID has a corresponding 'currently executing thread ID' field, and
- * reutrn that. */
return __tcb_cache[cpu_id()];
}