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/hppa64 | |
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/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/vm_machdep.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/sys/arch/hppa64/hppa64/vm_machdep.c b/sys/arch/hppa64/hppa64/vm_machdep.c index 5dffbd59b40..5cae3d3f2a2 100644 --- a/sys/arch/hppa64/hppa64/vm_machdep.c +++ b/sys/arch/hppa64/hppa64/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.2 2005/05/01 19:29:56 mickey Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.3 2006/11/29 12:26:13 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -104,9 +104,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; @@ -121,22 +122,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; |