summaryrefslogtreecommitdiff
path: root/sys/arch/sh
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/sh
parent79efc59c8e10c9ad1bd16695a6b40cb4a9dad677 (diff)
pagemove() is no longer used.
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/vm_machdep.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/arch/sh/sh/vm_machdep.c b/sys/arch/sh/sh/vm_machdep.c
index db0441c37a5..a5b332decf4 100644
--- a/sys/arch/sh/sh/vm_machdep.c
+++ b/sys/arch/sh/sh/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.8 2007/03/02 06:11:54 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.9 2007/05/27 20:59:26 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $ */
/*
@@ -304,40 +304,6 @@ cpu_coredump(struct proc *p, struct vnode *vp, struct ucred *cred,
}
/*
- * 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(caddr_t from, caddr_t to, size_t size)
-{
- paddr_t pa;
- boolean_t rv;
-
-#ifdef DEBUG
- if (size % PAGE_SIZE)
- panic("pagemove: size=%08lx", (u_long) size);
-#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.
* All requests are (re)mapped into kernel VA space via the phys_map
* (a name with only slightly more meaning than "kernel_map")