summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-05-27 20:59:27 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-05-27 20:59:27 +0000
commit9428a8091736773335d91534b73d6be543395064 (patch)
tree2153eb391062556bb4b0f87d6ae65bdcaeff4660 /sys/arch/mac68k
parent79efc59c8e10c9ad1bd16695a6b40cb4a9dad677 (diff)
pagemove() is no longer used.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/mac68k/vm_machdep.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/arch/mac68k/mac68k/vm_machdep.c b/sys/arch/mac68k/mac68k/vm_machdep.c
index 0417139e6b6..00bb0bce0d7 100644
--- a/sys/arch/mac68k/mac68k/vm_machdep.c
+++ b/sys/arch/mac68k/mac68k/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.38 2007/03/13 19:38:23 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.39 2007/05/27 20:59:25 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.29 1998/07/28 18:34:55 thorpej Exp $ */
/*
@@ -197,40 +197,6 @@ cpu_coredump(p, vp, cred, chdr)
}
/*
- * Move pages from one kernel virtual address to another.
- * Both addresses are assumed to reside in the Sysmap,
- * and size must be a multiple of PAGE_SIZE.
- */
-void
-pagemove(from, to, size)
- caddr_t from, to;
- size_t size;
-{
- paddr_t pa;
- boolean_t rv;
-
-#ifdef DEBUG
- if ((size & PAGE_MASK) != 0)
- panic("pagemove");
-#endif
- while (size > 0) {
- rv = pmap_extract(pmap_kernel(), (vaddr_t)from, &pa);
-#ifdef DEBUG
- if (rv == FALSE)
- panic("pagemove 2");
- if (pmap_extract(pmap_kernel(), (vaddr_t)to, NULL) == TRUE)
- panic("pagemove 3");
-#endif
- 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;
- }
- pmap_update(pmap_kernel());
-}
-
-/*
* Map an IO request into kernel virtual address space.
*
* XXX we allocate KVA space by using kmem_alloc_wait which we know