From 41ead8de77963bae907375c1bb115dad3315f46b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 12 Nov 2022 16:41:36 +0200 Subject: initial rpc implementations --- common/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/proc.c') diff --git a/common/proc.c b/common/proc.c index 137a2fe..1acd5b8 100644 --- a/common/proc.c +++ b/common/proc.c @@ -21,7 +21,7 @@ stat_t prepare_proc(struct tcb *t, vm_t bin, vm_t interp) if (!entry) return ERR_INVAL; - alloc_stacks(t); + alloc_stack(t); set_thread(t); set_return(t, entry); return OK; @@ -40,7 +40,7 @@ stat_t init_proc(void *fdt) use_tcb(t); /* init process has all capabilities */ - set_caps(t->caps, 0, CAP_CAPS | CAP_PROC | CAP_CALL); + set_caps(t->caps, 0, CAP_CAPS | CAP_PROC | CAP_CALL | CAP_POWER); /* allocate stacks after ELF file to make sure nothing of importance * clashes */ -- cgit v1.3