diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-12 16:41:36 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-12 16:41:36 +0200 |
| commit | 41ead8de77963bae907375c1bb115dad3315f46b (patch) | |
| tree | 4b364db137bd3bea69853f15329292af7662897d /common/proc.c | |
| parent | 1d37792fb7a47135f0e7b7fc245e83bb1d8fc496 (diff) | |
| download | kmi-41ead8de77963bae907375c1bb115dad3315f46b.tar.gz kmi-41ead8de77963bae907375c1bb115dad3315f46b.zip | |
initial rpc implementations
Diffstat (limited to 'common/proc.c')
| -rw-r--r-- | common/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |
