diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-27 20:59:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-05-27 20:59:27 +0000 |
commit | 9428a8091736773335d91534b73d6be543395064 (patch) | |
tree | 2153eb391062556bb4b0f87d6ae65bdcaeff4660 /sys/arch/alpha | |
parent | 79efc59c8e10c9ad1bd16695a6b40cb4a9dad677 (diff) |
pagemove() is no longer used.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/vm_machdep.c | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c index 6c28027bbc7..44ba5e3f1a1 100644 --- a/sys/arch/alpha/alpha/vm_machdep.c +++ b/sys/arch/alpha/alpha/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.32 2006/11/29 12:26:11 miod Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.33 2007/05/27 20:59:24 miod Exp $ */ /* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */ /* @@ -236,48 +236,6 @@ cpu_fork(p1, p2, stack, stacksize, func, arg) } /* - * Move pages from one kernel virtual address to another. - * Both addresses are assumed to have valid page table pages. - * - * Note that since all kernel page table pages are pre-allocated - * and mapped in, we can use the Virtual Page Table. - */ -void -pagemove(from, to, size) - register caddr_t from, to; - size_t size; -{ - long fidx, tidx; - ssize_t todo; - -#ifdef DIAGNOSTIC - if ((size & PAGE_MASK) != 0) - panic("pagemove"); -#endif - - todo = size; /* if testing > 0, need sign... */ - while (todo > 0) { - fidx = VPT_INDEX(from); - tidx = VPT_INDEX(to); - - VPT[tidx] = VPT[fidx]; - VPT[fidx] = 0; - - ALPHA_TBIS((vaddr_t)from); - ALPHA_TBIS((vaddr_t)to); - -#if defined(MULTIPROCESSOR) && 0 - pmap_tlb_shootdown(pmap_kernel(), (vaddr_t)from, PG_ASM); - pmap_tlb_shootdown(pmap_kernel(), (vaddr_t)to, PG_ASM); -#endif - - todo -= PAGE_SIZE; - from += PAGE_SIZE; - to += PAGE_SIZE; - } -} - -/* * 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(). |