Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Pass an access_type to uvm_fault_wire(), which it fo...
details: https://anonhg.NetBSD.org/src/rev/9cae391d1f40
branches: trunk
changeset: 473225:9cae391d1f40
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 26 00:32:42 1999 +0000
description:
Pass an access_type to uvm_fault_wire(), which it forwards on to
uvm_fault().
diffstat:
sys/uvm/uvm_fault.c | 7 ++++---
sys/uvm/uvm_fault.h | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 138c1f3ef5ed -r 9cae391d1f40 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Tue May 25 23:31:14 1999 +0000
+++ b/sys/uvm/uvm_fault.c Wed May 26 00:32:42 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.29 1999/05/19 06:14:15 chs Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.30 1999/05/26 00:32:42 thorpej Exp $ */
/*
*
@@ -1691,9 +1691,10 @@
*/
int
-uvm_fault_wire(map, start, end)
+uvm_fault_wire(map, start, end, access_type)
vm_map_t map;
vaddr_t start, end;
+ vm_prot_t access_type;
{
vaddr_t va;
pmap_t pmap;
@@ -1715,7 +1716,7 @@
*/
for (va = start ; va < end ; va += PAGE_SIZE) {
- rv = uvm_fault(map, va, VM_FAULT_WIRE, VM_PROT_NONE);
+ rv = uvm_fault(map, va, VM_FAULT_WIRE, access_type);
if (rv) {
if (va != start) {
uvm_fault_unwire(map->pmap, start, va);
diff -r 138c1f3ef5ed -r 9cae391d1f40 sys/uvm/uvm_fault.h
--- a/sys/uvm/uvm_fault.h Tue May 25 23:31:14 1999 +0000
+++ b/sys/uvm/uvm_fault.h Wed May 26 00:32:42 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.h,v 1.8 1999/03/25 18:48:51 mrg Exp $ */
+/* $NetBSD: uvm_fault.h,v 1.9 1999/05/26 00:32:42 thorpej Exp $ */
/*
*
@@ -78,7 +78,7 @@
struct uvm_object *, struct vm_anon *));
static void uvmfault_unlockmaps __P((struct uvm_faultinfo *, boolean_t));
-int uvm_fault_wire __P((vm_map_t, vaddr_t, vaddr_t));
+int uvm_fault_wire __P((vm_map_t, vaddr_t, vaddr_t, vm_prot_t));
void uvm_fault_unwire __P((struct pmap *, vaddr_t, vaddr_t));
#endif /* _UVM_UVM_FAULT_H_ */
Home |
Main Index |
Thread Index |
Old Index