Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Change pmap_kenter_pa/pmap_kremove pair b...



details:   https://anonhg.NetBSD.org/src/rev/0b6a4ac2fe04
branches:  trunk
changeset: 539174:0b6a4ac2fe04
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Sun Nov 10 05:29:18 2002 +0000

description:
Change pmap_kenter_pa/pmap_kremove pair back to pmap_enter/pmap_remove
in fear of the case choosen kva results in occupying inconsistent
distinctive cache lines of uva.

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 92823f85df5a -r 0b6a4ac2fe04 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Sun Nov 10 04:30:10 2002 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Sun Nov 10 05:29:18 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.90 2002/11/10 02:27:50 nisimura Exp $ */
+/*     $NetBSD: vm_machdep.c,v 1.91 2002/11/10 05:29:18 nisimura Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -45,7 +45,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.90 2002/11/10 02:27:50 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.91 2002/11/10 05:29:18 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -311,7 +311,8 @@
        do {
                if (pmap_extract(upmap, uva, &pa) == FALSE)
                        panic("vmapbuf: null page frame");
-               pmap_kenter_pa(kva, pa, VM_PROT_READ | VM_PROT_WRITE);
+               pmap_enter(vm_map_pmap(phys_map), kva, pa,
+                   VM_PROT_READ | VM_PROT_WRITE, PMAP_WIRED);
                uva += PAGE_SIZE;
                kva += PAGE_SIZE;
                len -= PAGE_SIZE;
@@ -336,7 +337,7 @@
        kva = mips_trunc_page(bp->b_data);
        off = (vaddr_t)bp->b_data - kva;
        len = mips_round_page(off + len);
-       pmap_kremove(kva, len);
+       pmap_remove(vm_map_pmap(phys_map), kva, kva + len);
        pmap_update(pmap_kernel());
        uvm_km_free_wakeup(phys_map, kva, len);
        bp->b_data = bp->b_saveaddr;



Home | Main Index | Thread Index | Old Index