diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-02 18:58:13 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-11-02 18:58:13 +0200 |
| commit | 5890df7bf838a5a912465a1bba02e5d8cf34e33c (patch) | |
| tree | 48c17acfc5ed2b44bff817b00123288098273ecc /src/elf.c | |
| parent | 5531e2eaaa2fd1dd282dba2fb5bc10e09dfec5e0 (diff) | |
| download | kmi-5890df7bf838a5a912465a1bba02e5d8cf34e33c.tar.gz kmi-5890df7bf838a5a912465a1bba02e5d8cf34e33c.zip | |
allow skipping some cache flushes in proc
Diffstat (limited to 'src/elf.c')
| -rw-r--r-- | src/elf.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |
