From a12e50e5a7dae52ed8bd5a24cc6576371e20985b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 27 Dec 2021 20:40:44 +0200 Subject: Started work on syscalls --- include/apos/tcb.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/apos/tcb.h') diff --git a/include/apos/tcb.h b/include/apos/tcb.h index f987b43..714d750 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -4,6 +4,7 @@ struct tcb; struct sp_reg_root; +#include #include #include #include @@ -18,18 +19,20 @@ struct sp_reg_root { struct tcb { struct sp_node sp_n; + struct sp_reg_root sp_r; + struct arch_tcbd tcbd; id_t pid; id_t tid; + vm_t callback; vm_t stack; - vm_t heap; - vm_t bin; struct vm_branch_t *b_r; - struct sp_reg_root sp_r; }; void threads_insert(struct tcb *t); +struct tcb *cur_tcb(); +struct tcb *get_tcb(id_t tid); #endif /* APOS_TCB_H */ -- cgit v1.3