diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-17 15:14:16 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-09-17 15:14:16 +0000 |
commit | 44c85d98710358dc86ba4748a09615c7a8be83c6 (patch) | |
tree | d0dd64f555feeceae1307ac30b6ddc4934b04e35 /sys | |
parent | 87e93fa8155b053704b6448a061b24ac072e63ea (diff) |
pagemove() should use the pmap_k* functions instead of pmap_enter/remove.
The buffer cache is initialized with pmap_k* for all powerpc systems.
Does not cause a problem with current code because pmap_k* are only
wrappers around pmap_enter/remove.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/powerpc/powerpc/vm_machdep.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c index f1980b01929..2d5b3ccfc46 100644 --- a/sys/arch/powerpc/powerpc/vm_machdep.c +++ b/sys/arch/powerpc/powerpc/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.21 2001/07/25 13:25:33 art Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.22 2001/09/17 15:14:15 drahn Exp $ */ /* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */ /* @@ -154,10 +154,9 @@ pagemove(from, to, size) for (va = (vm_offset_t)from; size > 0; size -= NBPG) { pmap_extract(pmap_kernel(), va, &pa); - pmap_remove(pmap_kernel(), va, va + NBPG); - pmap_enter(pmap_kernel(), (vm_offset_t)to, pa, - VM_PROT_READ | VM_PROT_WRITE, - VM_PROT_READ | VM_PROT_WRITE | PMAP_WIRED); + pmap_kremove(va, NBPG); + pmap_kenter_pa((vm_offset_t)to, pa, + VM_PROT_READ | VM_PROT_WRITE ); va += NBPG; to += NBPG; } |