Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Arm has a vac, so we must use pmap_enter/...



details:   https://anonhg.NetBSD.org/src/rev/0ff99ee95ca1
branches:  trunk
changeset: 514052:0ff99ee95ca1
user:      chris <chris%NetBSD.org@localhost>
date:      Mon Aug 20 21:52:09 2001 +0000

description:
Arm has a vac, so we must use pmap_enter/remove for vmapbuf rather than k* versions, otherwise we may not be doing the right caching thing.

diffstat:

 sys/arch/arm/arm32/vm_machdep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r db6313a0cc36 -r 0ff99ee95ca1 sys/arch/arm/arm32/vm_machdep.c
--- a/sys/arch/arm/arm32/vm_machdep.c   Mon Aug 20 21:44:57 2001 +0000
+++ b/sys/arch/arm/arm32/vm_machdep.c   Mon Aug 20 21:52:09 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.3 2001/08/11 12:57:25 chris Exp $     */
+/*     $NetBSD: vm_machdep.c,v 1.4 2001/08/20 21:52:09 chris Exp $     */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -336,7 +336,8 @@
        while (len) {
                (void) pmap_extract(vm_map_pmap(&bp->b_proc->p_vmspace->vm_map),
                    faddr, &fpa);
-               pmap_kenter_pa(taddr, fpa, VM_PROT_READ|VM_PROT_WRITE);
+               pmap_enter(pmap_kernel(), taddr, fpa,
+                       VM_PROT_READ|VM_PROT_WRITE, PMAP_WIRED);
                faddr += PAGE_SIZE;
                taddr += PAGE_SIZE;
                len -= PAGE_SIZE;
@@ -370,7 +371,8 @@
        addr = trunc_page((vaddr_t)bp->b_data);
        off = (vaddr_t)bp->b_data - addr;
        len = round_page(off + len);
-       pmap_kremove(addr, len);
+       
+       pmap_remove(pmap_kernel(), addr, addr + len);
        pmap_update();
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;



Home | Main Index | Thread Index | Old Index