Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Wired kernel mappings are wired; pass VM_PROT_READ|V...
details: https://anonhg.NetBSD.org/src/rev/304973e6f6b8
branches: trunk
changeset: 473249:304973e6f6b8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 26 19:27:49 1999 +0000
description:
Wired kernel mappings are wired; pass VM_PROT_READ|VM_PROT_WRITE for
access_type to pmap_enter() to ensure that when these mappings are accessed,
possibly in interrupt context, that they won't cause mod/ref emulation
page faults.
diffstat:
sys/uvm/uvm_km.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r eb132f32c1ac -r 304973e6f6b8 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c Wed May 26 19:23:13 1999 +0000
+++ b/sys/uvm/uvm_km.c Wed May 26 19:27:49 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_km.c,v 1.25 1999/05/26 19:16:36 thorpej Exp $ */
+/* $NetBSD: uvm_km.c,v 1.26 1999/05/26 19:27:49 thorpej Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -827,11 +827,11 @@
VM_PROT_ALL);
#else
pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
- UVM_PROT_ALL, TRUE, 0);
+ UVM_PROT_ALL, TRUE, VM_PROT_READ|VM_PROT_WRITE);
#endif
} else {
pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
- UVM_PROT_ALL, TRUE, 0);
+ UVM_PROT_ALL, TRUE, VM_PROT_READ|VM_PROT_WRITE);
}
loopva += PAGE_SIZE;
offset += PAGE_SIZE;
@@ -964,7 +964,7 @@
* object, so we always use regular old pmap_enter().
*/
pmap_enter(map->pmap, loopva, VM_PAGE_TO_PHYS(pg),
- UVM_PROT_ALL, TRUE, 0);
+ UVM_PROT_ALL, TRUE, VM_PROT_READ|VM_PROT_WRITE);
loopva += PAGE_SIZE;
offset += PAGE_SIZE;
Home |
Main Index |
Thread Index |
Old Index