summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-29 12:26:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-29 12:26:15 +0000
commit83ea6d9a0a8b9171d867e660a90fcc62e64536c8 (patch)
tree096c842714695071f1802fbf2c41c202699795fc /sys/arch/alpha
parent83368008eb99b7d2d9cb6f221de83c9af517b654 (diff)
Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (except
for cpu_swapin() on hppa* which is kept).
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/vm_machdep.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c
index 88b08b62e77..6c28027bbc7 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.31 2006/04/13 14:41:08 brad Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.32 2006/11/29 12:26:11 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */
/*
@@ -234,39 +234,6 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
up->u_pcb.pcb_context[8] = ALPHA_PSL_IPL_0; /* ps: IPL */
}
}
-/*
- * Finish a swapin operation.
- * We needed to update the cached PTEs for the user area in the
- * machine dependent part of the proc structure.
- */
-void
-cpu_swapin(p)
- register struct proc *p;
-{
- struct user *up = p->p_addr;
-
- /*
- * Cache the physical address of the pcb, so we can swap to
- * it easily.
- */
- p->p_md.md_pcbpaddr = (void *)vtophys((vaddr_t)&up->u_pcb);
-}
-
-/*
- * cpu_swapout is called immediately before a process's 'struct user'
- * and kernel stack are unwired, and after the process' P_INMEM flag
- * is cleared). If the process is the current owner of the floating
- * point unit, the FP state has to be saved, so that it goes out with
- * the pcb, which is in the user area.
- */
-void
-cpu_swapout(p)
- struct proc *p;
-{
-
- if (p->p_addr->u_pcb.pcb_fpcpu != NULL)
- fpusave_proc(p, 1);
-}
/*
* Move pages from one kernel virtual address to another.