From 90ab6923775b2e011f434c92361bc5aabb4ce980 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 00:09:21 +0200 Subject: write init more sensibly + Both easier to look at and now the userspace doesn't play as big of a role in the 'benchmarking' with optimizations turned on. --- common/uapi/ipc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/uapi/ipc.c') diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index e45c7dd..5041ca2 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -50,9 +50,12 @@ static struct sys_ret do_ipc(sys_arg_t pid, if (!r->callback) return SYS_RET1(ERR_NOINIT); + uint64_t before, after; + clone_uvmem(r->proc.vmem, t->rpc.vmem); use_vmem(t->rpc.vmem); save_context(t); + set_return(t, r->callback); /** @todo associate thread with new proc, should be done in tcb.c I * think */ -- cgit v1.3