diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-10-16 20:33:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-10-16 20:33:28 +0000 |
commit | 55dd4932cb6b4bb71cdfad667e110578eccbaaf0 (patch) | |
tree | 7bcb1f50274d0240de89048870547970036f0cec /sys/arch/sparc64 | |
parent | b19e9b0a76dbd59970f6b23570d84ebf08dd1c66 (diff) |
Make lazy fpu context switching work for MULTIPROCESSOR kernels. Tested by
many.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-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; } |