diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-09 23:50:14 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-06-09 23:50:14 +0300 |
| commit | da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55 (patch) | |
| tree | 85323057da02893e351426c60f2c5cfd5603b428 /common/tcb.c | |
| parent | e30cd339e271b0d16dbecf6c521fa06c3a05e3f1 (diff) | |
| download | kmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.tar.gz kmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.zip | |
continue documentation
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/tcb.c b/common/tcb.c index c8fd811..a682b07 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -42,7 +42,7 @@ void destroy_tcbs() static id_t __alloc_tid(struct tcb *t) { - /* TODO: this would need some locking or something... */ + /* \todo: this would need some locking or something... */ for (size_t i = start_tid; i < num_tids; ++i) { if (tcbs[i]) continue; @@ -55,7 +55,7 @@ static id_t __alloc_tid(struct tcb *t) return ERR_NF; } -/* TODO: add error checking */ +/* \todo: add error checking */ static vm_t __setup_rpc_stack(struct tcb *t, size_t bytes) { pm_t offset = 0; @@ -86,11 +86,11 @@ stat_t alloc_stacks(struct tcb *t) return ERR_OOMEM; /* rpc stack always starts at the same place in vmem. - * TODO: is this a security issue? */ + * \todo: is this a security issue? */ if (!__setup_rpc_stack(p, __call_stack_size)) return ERR_OOMEM; - /* TODO: this only allows for a global stack size, what if a user wants + /* \todo: this only allows for a global stack size, what if a user wants * per thread stack sizes? */ t->thread_stack_top = t->thread_stack + __thread_stack_size; return OK; @@ -103,7 +103,7 @@ struct tcb *create_thread(struct tcb *p) vm_t bottom = alloc_page(MM_O0, 0); /* move tcb to top of kernel stack, keeping alignment in check * (hopefully) */ - /* TODO: check alignment */ + /* \todo: check alignment */ struct tcb *t = (struct tcb *)align_down( bottom + order_size(MM_O0) - sizeof(struct tcb), sizeof(long)); memset(t, 0, sizeof(struct tcb)); @@ -131,7 +131,7 @@ struct tcb *create_thread(struct tcb *p) static stat_t __clone_proc(struct tcb *p, struct tcb *n) { - /* TODO: clone memory regions, and mark them MR_COW, as well as copy + /* \todo: clone memory regions, and mark them MR_COW, as well as copy * bm_branch tree but with VM_W off, also at some point write COW * handler */ return OK; @@ -161,7 +161,7 @@ static stat_t __destroy_thread_data(struct tcb *t) vm_t bottom = align_down((vm_t)t, order_size(MM_O0)); free_page(MM_O0, (pm_t)bottom); - /* TODO: free stacks */ + /* \todo: free stacks */ return OK; } |
