diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 12:26:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 12:26:15 +0000 |
commit | 83ea6d9a0a8b9171d867e660a90fcc62e64536c8 (patch) | |
tree | 096c842714695071f1802fbf2c41c202699795fc /sys/arch/hppa | |
parent | 83368008eb99b7d2d9cb6f221de83c9af517b654 (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/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/vm_machdep.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/sys/arch/hppa/hppa/vm_machdep.c b/sys/arch/hppa/hppa/vm_machdep.c index 4ce15d36b57..56e4b3f2fde 100644 --- a/sys/arch/hppa/hppa/vm_machdep.c +++ b/sys/arch/hppa/hppa/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.56 2005/03/15 05:13:32 mickey Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.57 2006/11/29 12:26:13 miod Exp $ */ /* * Copyright (c) 1999-2004 Michael Shalayeff @@ -113,9 +113,10 @@ pagemove(from, to, size) pmap_update(pmap_kernel()); } +void cpu_swapin(struct proc *p); + void -cpu_swapin(p) - struct proc *p; +cpu_swapin(struct proc *p) { struct trapframe *tf = p->p_md.md_regs; paddr_t pa; @@ -130,22 +131,6 @@ cpu_swapin(p) } void -cpu_swapout(p) - struct proc *p; -{ - extern paddr_t fpu_curpcb; /* from locore.S */ - extern u_int fpu_enable; - struct trapframe *tf = p->p_md.md_regs; - - if (tf->tf_cr30 == fpu_curpcb) { - mtctl(fpu_enable, CR_CCR); - fpu_save(fpu_curpcb); - fpu_curpcb = 0; - mtctl(0, CR_CCR); - } -} - -void cpu_fork(p1, p2, stack, stacksize, func, arg) struct proc *p1, *p2; void *stack; |