aboutsummaryrefslogtreecommitdiff
path: root/include/apos/tcb.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-27 20:40:44 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-27 20:40:44 +0200
commita12e50e5a7dae52ed8bd5a24cc6576371e20985b (patch)
tree70ddf625029dbe1ca4d38ec4f1819fe5fe7e4291 /include/apos/tcb.h
parentd98ec57128628b81fcd32269a92742a037b7f713 (diff)
downloadkmi-a12e50e5a7dae52ed8bd5a24cc6576371e20985b.tar.gz
kmi-a12e50e5a7dae52ed8bd5a24cc6576371e20985b.zip
Started work on syscalls
Diffstat (limited to 'include/apos/tcb.h')
-rw-r--r--include/apos/tcb.h9
1 files changed, 6 insertions, 3 deletions
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 <tcb.h>
#include <vmem.h>
#include <apos/vmem.h>
#include <apos/types.h>
@@ -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 */