diff options
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 8885cc1ad7b..4e4474e0e81 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.98 2007/10/08 17:48:06 krw Exp $ */ +/* $OpenBSD: machdep.c,v 1.99 2007/10/16 20:33:27 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -385,10 +385,7 @@ setregs(p, pack, stack, retval) * we must get rid of it, and the only way to do that is * to save it. In any case, get rid of our FPU state. */ - if (p == fpproc) { - savefpstate(fs); - fpproc = NULL; - } + save_and_clear_fpstate(p); free((void *)fs, M_SUBPROC); p->p_md.md_fpstate = NULL; } |