From ae0ddea4f6795ef7262ccfc91d9c5ddb0f8bba4f Mon Sep 17 00:00:00 2001 From: chs Date: Mon, 28 May 2001 22:16:17 +0000 Subject: [PATCH] in pagemove(), use pmap_k{enter_pa,remove} instead of pmap_{enter,remove} since buffer cache pages aren't really managed by UVM. --- sys/arch/next68k/next68k/vm_machdep.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/arch/next68k/next68k/vm_machdep.c b/sys/arch/next68k/next68k/vm_machdep.c index 70b5a1683b01..aefbef329f73 100644 --- a/sys/arch/next68k/next68k/vm_machdep.c +++ b/sys/arch/next68k/next68k/vm_machdep.c @@ -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 @@ pagemove(from, to, size) 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;