From b122cec9aa6f9ecf5af07ecfee19f6e93231e8c8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 8 Jan 2019 16:58:02 +0000 Subject: [PATCH] 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. --- Kernel/syscall_exec16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.34.1