From e5c7d1c1dda40f8f262e26fed911bfe03027993b Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 7 Sep 2016 00:11:08 +0200 Subject: Remove map entry pageability property. Since the replacement of the zone allocator, kernel objects have been wired in memory. Besides, as of 5e9f6f (Stack the slab allocator directly on top of the physical allocator), there is a single cache used to allocate map entries. Those changes make the pageability attribute of VM maps irrelevant. * device/ds_routines.c (mach_device_init): Update call to kmem_submap. * ipc/ipc_init.c (ipc_init): Likewise. * kern/task.c (task_create): Update call to vm_map_create. * vm/vm_kern.c (kmem_submap): Remove `pageable' argument. Update call to vm_map_setup. (kmem_init): Update call to vm_map_setup. * vm/vm_kern.h (kmem_submap): Update declaration. * vm/vm_map.c (vm_map_setup): Remove `pageable' argument. Don't set `entries_pageable' member. (vm_map_create): Likewise. (vm_map_copyout): Don't bother creating copies of page entries with the right pageability. (vm_map_copyin): Don't set `entries_pageable' member. (vm_map_fork): Update call to vm_map_create. * vm/vm_map.h (struct vm_map_header): Remove `entries_pageable' member. (vm_map_setup, vm_map_create): Remove `pageable' argument. --- kern/task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kern/task.c') diff --git a/kern/task.c b/kern/task.c index 673a4378..7dff1249 100644 --- a/kern/task.c +++ b/kern/task.c @@ -104,7 +104,7 @@ kern_return_t task_create( } else { new_task->map = vm_map_create(pmap_create(0), round_page(VM_MIN_ADDRESS), - trunc_page(VM_MAX_ADDRESS), TRUE); + trunc_page(VM_MAX_ADDRESS)); vm_map_set_name(new_task->map, new_task->name); } -- cgit v1.2.3