Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc More refinement, only map B_READ bu...
details: https://anonhg.NetBSD.org/src/rev/a0faf4adbbe6
branches: trunk
changeset: 535119:a0faf4adbbe6
user: matt <matt%NetBSD.org@localhost>
date: Sat Aug 10 18:49:56 2002 +0000
description:
More refinement, only map B_READ buf with VM_PROT_WRITE (all pages always
have VM_PROT_READ). Also, pass PMAP_WIRED to pmap_enter (for non-mpc6xx
pmaps). This will give pmap clues about flushing any "icache ok state".
diffstat:
sys/arch/powerpc/powerpc/vm_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7c532517a9df -r a0faf4adbbe6 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c Sat Aug 10 17:25:01 2002 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c Sat Aug 10 18:49:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.41 2002/08/10 16:28:49 matt Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.42 2002/08/10 18:49:56 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -350,6 +350,7 @@
vaddr_t faddr, taddr;
vsize_t off;
paddr_t pa;
+ int prot = VM_PROT_READ | ((bp->b_flags & B_READ) ? VM_PROT_WRITE : 0);
#ifdef DIAGNOSTIC
if (!(bp->b_flags & B_PHYS))
@@ -370,8 +371,7 @@
* Use pmap_enter so the referenced and modified bits are
* appropriately set.
*/
- pmap_enter(pmap_kernel(), taddr, pa,
- VM_PROT_READ|VM_PROT_WRITE, VM_PROT_READ|VM_PROT_WRITE);
+ pmap_enter(pmap_kernel(), taddr, pa, prot, prot|PMAP_WIRED);
faddr += NBPG;
taddr += NBPG;
}
Home |
Main Index |
Thread Index |
Old Index