aboutsummaryrefslogtreecommitdiff
path: root/src/elf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-11-02 18:58:13 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-11-02 18:58:13 +0200
commit5890df7bf838a5a912465a1bba02e5d8cf34e33c (patch)
tree48c17acfc5ed2b44bff817b00123288098273ecc /src/elf.c
parent5531e2eaaa2fd1dd282dba2fb5bc10e09dfec5e0 (diff)
downloadkmi-5890df7bf838a5a912465a1bba02e5d8cf34e33c.tar.gz
kmi-5890df7bf838a5a912465a1bba02e5d8cf34e33c.zip
allow skipping some cache flushes in proc
Diffstat (limited to 'src/elf.c')
-rw-r--r--src/elf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/elf.c b/src/elf.c
index 85b4b2e..f643d41 100644
--- a/src/elf.c
+++ b/src/elf.c
@@ -93,10 +93,9 @@ static stat_t __map_exec(struct tcb *t,
/* create empty vmem so we don't have to worry about possible overlaps */
struct vmem *new_vmem = create_vmem();
- if (!new_vmem) {
- use_vmem(t->rpc.vmem);
+ if (!new_vmem)
return ERR_OOMEM;
- }
+
struct vmem *old_vmem = t->proc.vmem;
t->proc.vmem = new_vmem;