summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
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/sparc64
parent79efc59c8e10c9ad1bd16695a6b40cb4a9dad677 (diff)
pagemove() is no longer used.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/vm_machdep.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/sys/arch/sparc64/sparc64/vm_machdep.c b/sys/arch/sparc64/sparc64/vm_machdep.c
index 179a731392c..f60192b2be8 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.13 2006/05/29 20:01:32 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.14 2007/05/27 20:59:26 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.38 2001/06/30 00:02:20 eeh Exp $ */
/*
@@ -70,31 +70,6 @@
#include <sparc64/sparc64/cache.h>
/*
- * Move pages from one kernel virtual address to another.
- */
-void
-pagemove(from, to, size)
- register caddr_t from, to;
- size_t size;
-{
- paddr_t pa;
-
- if (size & PGOFSET || (long)from & PGOFSET || (long)to & PGOFSET)
- panic("pagemove 1");
-
- while (size > 0) {
- if (pmap_extract(pmap_kernel(), (vaddr_t)from, &pa) == FALSE)
- panic("pagemove 2");
- 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 a user I/O request into kernel virtual address space.
* Note: the pages are already locked by uvm_vslock(), so we
* do not need to pass an access_type to pmap_enter().