From 5976ad390a15726c3ddfacf8c8b282c8350f9554 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Tue, 29 Oct 2024 21:17:31 +0200 Subject: start moving towards threads always being in rpc --- src/elf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/elf.c') diff --git a/src/elf.c b/src/elf.c index 29c9c09..259c77e 100644 --- a/src/elf.c +++ b/src/elf.c @@ -47,6 +47,8 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, size_t phnum, size_t phsize) { assert(t && is_proc(t)); + /* temporarily visit process virtual memory */ + use_vmem(t->proc.vmem); /** \todo take alignment into consideration? */ /** \todo take overlapping memory regions into account, probably mostly @@ -91,6 +93,8 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, mod_vpage(t->b_r, va, paddr, uvflags); */ } + + use_vmem(t->rpc.vmem); } /** -- cgit v1.3