From e6dc962ef7758c438039d7f8ac7e2bf3ebcb5c10 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 15:15:22 +0200 Subject: improve documentation on new features --- common/uapi/ipc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/uapi/ipc.c') diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c index e9a6e6b..052e0ad 100644 --- a/common/uapi/ipc.c +++ b/common/uapi/ipc.c @@ -55,8 +55,7 @@ static struct sys_ret do_ipc(sys_arg_t pid, save_context(t); set_return(t, r->callback); - /** @todo associate thread with new proc, should be done in tcb.c I - * think */ + attach_rpc(r, t); if (!fwd) t->eid = t->pid; @@ -110,7 +109,9 @@ SYSCALL_DEFINE4(ipc_resp)(sys_arg_t d0, sys_arg_t d1, sys_arg_t d2, sys_arg_t d3) { struct tcb *t = cur_tcb(); + struct tcb *r = cur_proc(); load_context(t); + detach_rpc(r, t); if (is_rpc(t)) use_vmem(t->rpc.vmem); -- cgit v1.3