Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/next68k in pagemove(), use pmap_k{enter_pa, ...



details:   https://anonhg.NetBSD.org/src/rev/2a725d4c4437
branches:  trunk
changeset: 510429:2a725d4c4437
user:      chs <chs%NetBSD.org@localhost>
date:      Mon May 28 22:16:17 2001 +0000

description:
in pagemove(), use pmap_k{enter_pa,remove} instead of pmap_{enter,remove}
since buffer cache pages aren't really managed by UVM.

diffstat:

 sys/arch/next68k/next68k/vm_machdep.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (23 lines):

diff -r 751e54a09cd0 -r 2a725d4c4437 sys/arch/next68k/next68k/vm_machdep.c
--- a/sys/arch/next68k/next68k/vm_machdep.c     Mon May 28 22:11:45 2001 +0000
+++ b/sys/arch/next68k/next68k/vm_machdep.c     Mon May 28 22:16:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.22 2001/05/13 16:55:40 chs Exp $      */
+/*     $NetBSD: vm_machdep.c,v 1.23 2001/05/28 22:16:17 chs Exp $      */
 
 /*
  * This file was taken from mvme68k/mvme68k/vm_machdep.c
@@ -229,11 +229,8 @@
                if (pmap_extract(pmap_kernel(), (vaddr_t)to, NULL) == TRUE)
                        panic("pagemove 3");
 #endif
-               pmap_remove(pmap_kernel(),
-                           (vaddr_t)from, (vaddr_t)from + PAGE_SIZE);
-               pmap_enter(pmap_kernel(),
-                          (vaddr_t)to, pa, VM_PROT_READ|VM_PROT_WRITE,
-                          VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
+               pmap_kremove((vaddr_t)from, PAGE_SIZE);
+               pmap_kenter_pa((vaddr_t)to, pa, VM_PROT_READ|VM_PROT_WRITE);
                from += PAGE_SIZE;
                to += PAGE_SIZE;
                size -= PAGE_SIZE;



Home | Main Index | Thread Index | Old Index