summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-09-07 00:11:08 +0200
committerRichard Braun <rbraun@sceen.net>2016-09-07 00:11:08 +0200
commite5c7d1c1dda40f8f262e26fed911bfe03027993b (patch)
tree1e5f9bfb86ef80c2fafdce7a1a9214ba955e9f5f /device
parentefcecd06abb8f7342723a8916917842840e9264f (diff)
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.
Diffstat (limited to 'device')
-rw-r--r--device/ds_routines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/ds_routines.c b/device/ds_routines.c
index 6b6dcb03..445e7ae1 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1532,7 +1532,7 @@ void mach_device_init(void)
simple_lock_init(&io_done_list_lock);
kmem_submap(device_io_map, kernel_map, &device_io_min, &device_io_max,
- DEVICE_IO_MAP_SIZE, FALSE);
+ DEVICE_IO_MAP_SIZE);
/*
* If the kernel receives many device_write requests, the