diff options
author | Richard Braun <rbraun@sceen.net> | 2016-12-24 02:57:36 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-12-24 03:16:00 +0100 |
commit | 92e3b0a3c3ba90c90605debf6e149e5a4b8d9a8f (patch) | |
tree | f79640022bdcfda93fe5ab29bfbc800d33b1c95a /mach-defpager/kalloc.c | |
parent | ee4795884ec145303115ac1bd88878684df46118 (diff) | |
download | hurd-92e3b0a3c3ba90c90605debf6e149e5a4b8d9a8f.tar.gz hurd-92e3b0a3c3ba90c90605debf6e149e5a4b8d9a8f.tar.bz2 hurd-92e3b0a3c3ba90c90605debf6e149e5a4b8d9a8f.zip |
mach-defpager: make the default pager use vm_wire_all
The vm_wire_all call was recently added to GNU Mach so that the
default pager doesn't depend on glibc malloc hooks any more.
* mach-defpager/default_pager.c
(start_default_pager_thread): Remove call to wire_memory.
* mach-defpager/kalloc.c (kget_space): Likewise.
* mach-defpager/wiring.c: Include mach/gnumach.h.
(wire_memory): Remove function.
(wire_all_memory): Replace call to wire_memory with a direct call
to vm_wire, call vm_wire_all after the fixup loop.
(vm_allocate, __vm_allocate): Remove functions.
* mach-defpager/wiring.h (wire_memory): Remove function.
Diffstat (limited to 'mach-defpager/kalloc.c')
-rw-r--r-- | mach-defpager/kalloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mach-defpager/kalloc.c b/mach-defpager/kalloc.c index e4ed12fb..33566438 100644 --- a/mach-defpager/kalloc.c +++ b/mach-defpager/kalloc.c @@ -150,8 +150,6 @@ vm_offset_t kget_space(vm_offset_t size) VM_PROT_DEFAULT, VM_PROT_ALL, VM_INHERIT_DEFAULT) != KERN_SUCCESS) return 0; - wire_memory(new_space, space_to_add, - VM_PROT_READ|VM_PROT_WRITE); pthread_spin_lock(&kget_space_lock); continue; } |