summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
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/powerpc
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/powerpc')
-rw-r--r--sys/arch/powerpc/include/cpu.h3
-rw-r--r--sys/arch/powerpc/powerpc/vm_machdep.c11
2 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/powerpc/include/cpu.h b/sys/arch/powerpc/include/cpu.h
index 154361f1f49..d6c4026e087 100644
--- a/sys/arch/powerpc/include/cpu.h
+++ b/sys/arch/powerpc/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.27 2006/02/10 21:27:22 kettenis Exp $ */
+/* $OpenBSD: cpu.h,v 1.28 2006/11/29 12:26:13 miod Exp $ */
/* $NetBSD: cpu.h,v 1.1 1996/09/30 16:34:21 ws Exp $ */
/*
@@ -42,7 +42,6 @@
#define CLKF_PC(frame) ((frame)->srr0)
#define CLKF_INTR(frame) ((frame)->depth != 0)
-#define cpu_swapout(p)
#define cpu_wait(p)
void delay(unsigned);
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c
index 4cf2a8cdaf1..d21d46bd283 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.40 2005/12/17 07:31:27 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.41 2006/11/29 12:26:14 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
@@ -125,15 +125,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
pcb->pcb_spl = 0;
}
-void
-cpu_swapin(struct proc *p)
-{
- struct pcb *pcb = &p->p_addr->u_pcb;
-
- pmap_extract(pmap_kernel(),
- (vaddr_t)pcb->pcb_pm, (paddr_t *)&pcb->pcb_pmreal);
-}
-
/*
* Move pages from one kernel virtual address to another.
*/