From a126211922d817cd1c4636c26d4a9a8b1b5f381f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 Nov 2024 12:08:38 +0200 Subject: copy rpc stacks directly + Speeds up fork a little bit --- src/uapi/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/uapi/ipc.c') diff --git a/src/uapi/ipc.c b/src/uapi/ipc.c index 644abc2..cebea68 100644 --- a/src/uapi/ipc.c +++ b/src/uapi/ipc.c @@ -48,7 +48,7 @@ enum ipc_flags { static inline void finalize_rpc(struct tcb *t, struct tcb *r, vm_t s) { clone_uvmem(r->proc.vmem, t->rpc.vmem); - flush_tlb_all(); + flush_tlb_full(); set_return(t, r->callback); reference_thread(r); @@ -247,7 +247,7 @@ static void leave_rpc(struct tcb *t, struct sys_ret a) * no-op */ t->rpc_stack = ctx->rpc_stack; destroy_rpc(t); - flush_tlb_all(); + flush_tlb_full(); t->pid = ctx->pid; t->eid = ctx->eid; -- cgit v1.3