summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
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/powerpc
parent79efc59c8e10c9ad1bd16695a6b40cb4a9dad677 (diff)
pagemove() is no longer used.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/powerpc/vm_machdep.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c
index 78cf2d0c1e0..41f91463e8c 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.42 2007/03/20 20:59:53 kettenis Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.43 2007/05/27 20:59:26 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
@@ -127,26 +127,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
}
/*
- * Move pages from one kernel virtual address to another.
- */
-void
-pagemove(caddr_t from, caddr_t to, size_t size)
-{
- vaddr_t va;
- paddr_t pa;
-
- for (va = (vaddr_t)from; size > 0; size -= NBPG) {
- pmap_extract(pmap_kernel(), va, &pa);
- pmap_kremove(va, NBPG);
- pmap_kenter_pa((vaddr_t)to, pa,
- VM_PROT_READ | VM_PROT_WRITE );
- va += NBPG;
- to += NBPG;
- }
- pmap_update(pmap_kernel());
-}
-
-/*
* cpu_exit is called as the last action during exit.
* We release the address space and machine-dependent resources,
* including the memory for the user structure and kernel stack.