summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-24 07:55:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-24 07:55:09 +0000
commita0404b5ea0461cf5e19285e04470642c3858ac4b (patch)
tree2a42c07b23acd8a32c3f4db58145e618d178e987 /sys
parentb5dc16a41222b7780f25ffdfa4ec268574174875 (diff)
Oops, forgot to commit that part of the pmap_kenter changes; spotted by art@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/vm_machdep.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/sparc64/sparc64/vm_machdep.c b/sys/arch/sparc64/sparc64/vm_machdep.c
index e770ad5a7ff..45864d16e23 100644
--- a/sys/arch/sparc64/sparc64/vm_machdep.c
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.8 2002/06/15 17:23:31 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.9 2003/02/24 07:55:08 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.38 2001/06/30 00:02:20 eeh Exp $ */
/*
@@ -90,11 +90,8 @@ pagemove(from, to, size)
while (size > 0) {
if (pmap_extract(pmap_kernel(), (vaddr_t)from, &pa) == FALSE)
panic("pagemove 2");
- 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;