diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-22 15:05:39 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-22 15:05:39 +0300 |
| commit | 5793a61eb824a7b97e9bab5913b595a778205cef (patch) | |
| tree | f31931b924058cb6474b80cd02472940ad8cfcd5 /common/proc.c | |
| parent | a4851206bef5ceecef18b3fde5be6918a67cca21 (diff) | |
| download | kmi-5793a61eb824a7b97e9bab5913b595a778205cef.tar.gz kmi-5793a61eb824a7b97e9bab5913b595a778205cef.zip | |
improved tcb handling in preparation for processes
Diffstat (limited to 'common/proc.c')
| -rw-r--r-- | common/proc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/proc.c b/common/proc.c index 8793d00..8824c5a 100644 --- a/common/proc.c +++ b/common/proc.c @@ -29,12 +29,13 @@ stat_t init_proc(void *fdt, struct vm_branch *b) { init_tcbs(); - /* todo: cleanup or something */ - struct tcb *t = new_thread(); + /* TODO: cleanup or something */ + struct tcb *t = create_thread(NULL); if (!t) return ERR_OOMEM; - t->b_r = b; + /* use existing branch */ + t->b_r = b; init_uvmem(t, UVMEM_START, UVMEM_END); /* TODO: this stuff should be placed in __sys_exec */ |
