diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-03-23 20:05:30 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-03-23 20:05:30 +0100 |
commit | 9f803eacded5409e66f1fd77f5425f4911f2ed8e (patch) | |
tree | 549b62efe191bfac2c465a40e6a42acb0f10eb5c /exec | |
parent | d8400c4394197317b722d6fa6aab47b1776f5176 (diff) | |
download | hurd-9f803eacded5409e66f1fd77f5425f4911f2ed8e.tar.gz hurd-9f803eacded5409e66f1fd77f5425f4911f2ed8e.tar.bz2 hurd-9f803eacded5409e66f1fd77f5425f4911f2ed8e.zip |
Revert "exec: Stop relying on address space size"
This reverts commit db46ea2eb9dc84959fbf9b1819facac3d6078ba1.
This is making the hurd startup hang.
Diffstat (limited to 'exec')
-rw-r--r-- | exec/exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c index ac226f9a..f6788520 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1219,7 +1219,9 @@ do_exec (file_t file, munmap ((caddr_t) threads, nthreads * sizeof (thread_t)); /* Deallocate the entire virtual address space of the task. */ - vm_deallocate (oldtask, 0, (vm_size_t) -1); + + vm_deallocate (oldtask, + VM_MIN_ADDRESS, VM_MAX_ADDRESS - VM_MIN_ADDRESS); /* Nothing is supposed to go wrong any more. If anything does, the old task is now in a hopeless state and must be killed. */ |