summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_km.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r--sys/uvm/uvm_km.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c
index 2e0ece879f7..a908f8f53aa 100644
--- a/sys/uvm/uvm_km.c
+++ b/sys/uvm/uvm_km.c
@@ -729,7 +729,7 @@ uvm_km_kmemalloc(map, obj, size, flags)
pmap_kenter_pa(loopva, VM_PAGE_TO_PHYS(pg), VM_PROT_ALL);
#else
pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
- UVM_PROT_ALL, TRUE);
+ UVM_PROT_ALL, TRUE, VM_PROT_READ | VM_PROT_WRITE);
#endif
loopva += PAGE_SIZE;
offset += PAGE_SIZE;
@@ -857,13 +857,13 @@ uvm_km_alloc1(map, size, zeroit)
continue;
}
- /* map it in */
-#if defined(PMAP_NEW)
- pmap_kenter_pa(loopva, VM_PAGE_TO_PHYS(pg), UVM_PROT_ALL);
-#else
- pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
- UVM_PROT_ALL, TRUE);
-#endif
+ /*
+ * map it in; note we're never called with an intrsafe
+ * object, so we always use regular old pmap_enter().
+ */
+ pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
+ UVM_PROT_ALL, TRUE, VM_PROT_READ|VM_PROT_WRITE);
+
loopva += PAGE_SIZE;
offset += PAGE_SIZE;
size -= PAGE_SIZE;