Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Patch from chuq for uvm r/w map oscillation bug.
details: https://anonhg.NetBSD.org/src/rev/8665b86f607d
branches: trunk
changeset: 477609:8665b86f607d
user: ross <ross%NetBSD.org@localhost>
date: Sun Oct 24 16:29:23 1999 +0000
description:
Patch from chuq for uvm r/w map oscillation bug.
Fixes the XalphaNetBSD slowdown.
diffstat:
sys/uvm/uvm_device.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 1137b1951586 -r 8665b86f607d sys/uvm/uvm_device.c
--- a/sys/uvm/uvm_device.c Sun Oct 24 15:33:45 1999 +0000
+++ b/sys/uvm/uvm_device.c Sun Oct 24 16:29:23 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_device.c,v 1.16 1999/04/08 10:26:21 drochner Exp $ */
+/* $NetBSD: uvm_device.c,v 1.17 1999/10/24 16:29:23 ross Exp $ */
/*
*
@@ -415,6 +415,7 @@
int lcv, retval, mdpgno;
dev_t device;
int (*mapfn) __P((dev_t, int, int));
+ vm_prot_t mapprot;
UVMHIST_FUNC("udv_fault"); UVMHIST_CALLED(maphist);
UVMHIST_LOG(maphist," flags=%d", flags,0,0,0);
@@ -473,11 +474,12 @@
break;
}
paddr = pmap_phys_address(mdpgno);
+ mapprot = ufi->entry->protection;
UVMHIST_LOG(maphist,
" MAPPING: device: pm=0x%x, va=0x%x, pa=0x%x, at=%d",
- ufi->orig_map->pmap, curr_va, (int)paddr, access_type);
- pmap_enter(ufi->orig_map->pmap, curr_va, paddr, access_type, 0,
- access_type);
+ ufi->orig_map->pmap, curr_va, (int)paddr, mapprot);
+ pmap_enter(ufi->orig_map->pmap, curr_va, paddr, mapprot, 0,
+ mapprot);
}
Home |
Main Index |
Thread Index |
Old Index