diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-13 00:09:21 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-11-13 00:09:21 +0200 |
| commit | 90ab6923775b2e011f434c92361bc5aabb4ce980 (patch) | |
| tree | 6b69fee3db9fdc04c7446f932a4b7db832843e25 /common | |
| parent | 845cf97e1faee613e3e73900f5f93bfcedc831f1 (diff) | |
| download | kmi-90ab6923775b2e011f434c92361bc5aabb4ce980.tar.gz kmi-90ab6923775b2e011f434c92361bc5aabb4ce980.zip | |
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.
Diffstat (limited to 'common')
| -rw-r--r-- | common/uapi/ipc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |
