aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-06-09 23:53:47 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-06-09 23:53:47 +0300
commit45b51617a0e3513a453c20229e02fd8fc9fbbfe1 (patch)
tree1ff6e23aea786c2b32521bb834e1fc133129101b /common/tcb.c
parentda8eeb7695a4803d1d45c8c26c05a51fb1ba1e55 (diff)
downloadkmi-45b51617a0e3513a453c20229e02fd8fc9fbbfe1.tar.gz
kmi-45b51617a0e3513a453c20229e02fd8fc9fbbfe1.zip
use doxygen todo
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/tcb.c b/common/tcb.c
index a682b07..3f644c1 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;
@@ -90,7 +90,7 @@ stat_t alloc_stacks(struct tcb *t)
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;
}