From be78fcb0acc665d4db8edb9cda53f6863d27dd85 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 7 Jan 2022 16:32:05 +0200 Subject: Improved header dependency tree --- common/proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/proc.c') 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 #include #include +#include /* 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)); -- cgit v1.3