diff options
author | 2002-11-08 22:30:48 +0000 | |
---|---|---|
committer | 2002-11-08 22:30:48 +0000 | |
commit | b1e569d5c59fabe9a239c30892f548f3655a2cc9 (patch) | |
tree | 2c6ac7b01991509ee96749e13483dd09c4bbb34c | |
parent | hmm, todos seem to be unapplicable no more (diff) | |
download | wireguard-openbsd-b1e569d5c59fabe9a239c30892f548f3655a2cc9.tar.xz wireguard-openbsd-b1e569d5c59fabe9a239c30892f548f3655a2cc9.zip |
absolutely no need to save the fpu state before rewriting the fpu regs, just reset the curpcb and force a reload
-rw-r--r-- | sys/arch/hppa/hppa/process_machdep.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/process_machdep.c b/sys/arch/hppa/hppa/process_machdep.c index 94540d75eac..b18afa35759 100644 --- a/sys/arch/hppa/hppa/process_machdep.c +++ b/sys/arch/hppa/hppa/process_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: process_machdep.c,v 1.6 2002/09/20 19:06:26 mickey Exp $ */ +/* $OpenBSD: process_machdep.c,v 1.7 2002/11/08 22:30:48 mickey Exp $ */ /* * Copyright (c) 1999-2002 Michael Shalayeff @@ -148,8 +148,6 @@ process_write_fpregs(p, fpregs) { extern paddr_t fpu_curpcb; - if (p->p_md.md_regs->tf_cr30 == fpu_curpcb) - fpu_save((vaddr_t)p->p_addr->u_pcb.pcb_fpregs); bcopy(fpregs, p->p_addr->u_pcb.pcb_fpregs, 32 * 8); if (p->p_md.md_regs->tf_cr30 == fpu_curpcb) { |