From: Alan Cox Date: Tue, 8 Jan 2019 16:58:02 +0000 (+0000) Subject: Breaks too much. Also messes up any future multi-process per bank arrangement X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b122cec9aa6f9ecf5af07ecfee19f6e93231e8c8;p=FUZIX.git Breaks too much. Also messes up any future multi-process per bank arrangement Revert "syscall_exec16: pagemap_realloc takes top, not size" This reverts commit 0463011f113a92a0c9b19fb91cbb081c743a2f32. --- diff --git a/Kernel/syscall_exec16.c b/Kernel/syscall_exec16.c index 27727f3e..876258ec 100644 --- a/Kernel/syscall_exec16.c +++ b/Kernel/syscall_exec16.c @@ -135,7 +135,7 @@ arg_t _execve(void) two elements. We never allocate 'code' as there is no split I/D */ /* This is only safe from deadlocks providing pagemap_realloc doesn't sleep */ - if (pagemap_realloc(0, top, 0)) + if (pagemap_realloc(0, top - MAPBASE, 0)) goto nogood3; /* From this point on we are commmited to the exec() completing */