summaryrefslogtreecommitdiff
path: root/sys/arch/amiga
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-07 15:29:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-07 15:29:45 +0000
commit4a1523fd5f20766a9c1957ae78690aa6ee0f2ae7 (patch)
treeb227d049de585c9816eec8171ff742e1e6e2fe95 /sys/arch/amiga
parent4d673f0cb018f03818e9064e13e560bb691e3ada (diff)
Since amiga now has correct pmap_k* and uses them for mapping
the buffer cache, it's a good idea to use them in pagemove too.
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r--sys/arch/amiga/amiga/vm_machdep.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/amiga/amiga/vm_machdep.c b/sys/arch/amiga/amiga/vm_machdep.c
index 007291f885c..7f29f66c40e 100644
--- a/sys/arch/amiga/amiga/vm_machdep.c
+++ b/sys/arch/amiga/amiga/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.28 2001/12/07 00:59:13 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.29 2001/12/07 15:29:44 art Exp $ */
/* $NetBSD: vm_machdep.c,v 1.30 1997/05/19 10:14:50 veego Exp $ */
/*
@@ -158,11 +158,8 @@ pagemove(from, to, size)
panic("pagemove 3");
#endif
#endif
- pmap_remove(pmap_kernel(), (vm_offset_t)from,
- (vm_offset_t)from + PAGE_SIZE);
- 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((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;