diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-22 16:25:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-04-22 16:25:47 +0000 |
commit | 6bd2008fa98cf973716c21f2db6d7fadead7186f (patch) | |
tree | 3fc7944d60411d0f767e4f4d49d04ea6b3d5f920 /sys | |
parent | 9a19272fe84f679368fb14885aa02799a2c1a3c1 (diff) |
Uncommit. Since this came out of the blue, without anyone else having
known of it; and since the commit message does not give the rest of us
any feeling that this was tested by anyone, this is being removed. This
is not an area where one commits because just art agrees. And that is
what the commit message says.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/uvm/uvm_km.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 5ba6b314d17..99367a74feb 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.29 2002/04/22 12:50:34 mickey Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.30 2002/04/22 16:25:46 deraadt Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -507,7 +507,7 @@ uvm_km_kmemalloc(map, obj, size, flags) */ if (__predict_false(uvm_map(map, &kva, size, obj, UVM_UNKNOWN_OFFSET, - 0, UVM_MAPFLAG(UVM_PROT_RW, UVM_PROT_RW, UVM_INH_NONE, + 0, UVM_MAPFLAG(UVM_PROT_ALL, UVM_PROT_ALL, UVM_INH_NONE, UVM_ADV_RANDOM, (flags & UVM_KMF_TRYLOCK))) != KERN_SUCCESS)) { UVMHIST_LOG(maphist, "<- done (no VM)",0,0,0,0); @@ -569,10 +569,11 @@ uvm_km_kmemalloc(map, obj, size, flags) if (UVM_OBJ_IS_INTRSAFE_OBJECT(obj)) { pmap_kenter_pa(loopva, VM_PAGE_TO_PHYS(pg), - UVM_PROT_RW); + VM_PROT_ALL); } else { pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg), - UVM_PROT_RW, PMAP_WIRED | UVM_PROT_RW); + UVM_PROT_ALL, + PMAP_WIRED | VM_PROT_READ | VM_PROT_WRITE); } loopva += PAGE_SIZE; offset += PAGE_SIZE; |