From 92e3b0a3c3ba90c90605debf6e149e5a4b8d9a8f Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 24 Dec 2016 02:57:36 +0100 Subject: 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. --- mach-defpager/kalloc.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'mach-defpager/kalloc.c') 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; } -- cgit v1.2.3