aboutsummaryrefslogtreecommitdiff
path: root/common/proc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 16:32:05 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2022-01-07 16:32:05 +0200
commitbe78fcb0acc665d4db8edb9cda53f6863d27dd85 (patch)
treee9e33e9e48983f630098eedd3d931edbe86e4410 /common/proc.c
parent9cc125fb3cfdc2c8ae7153b5ae0fe705980835fb (diff)
downloadkmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.tar.gz
kmi-be78fcb0acc665d4db8edb9cda53f6863d27dd85.zip
Improved header dependency tree
Diffstat (limited to 'common/proc.c')
-rw-r--r--common/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/proc.c b/common/proc.c
index ccd60bd..c272727 100644
--- a/common/proc.c
+++ b/common/proc.c
@@ -3,6 +3,7 @@
#include <apos/string.h>
#include <apos/initrd.h>
#include <apos/proc.h>
+#include <arch/arch.h>
/* TODO: add error checking */
static vm_t setup_call_stack(struct tcb *t, size_t bytes)
@@ -34,7 +35,7 @@ void init_proc(void *fdt, struct vm_branch *b)
threads_insert(t);
- sp_mem_init(&t->sp_r, UVMEM_START, UVMEM_END);
+ init_uvmem(t, UVMEM_START, UVMEM_END);
/* the binary gets to choose first what memory regions it requires */
t->entry = load_elf(t, get_init_base(fdt));