summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2010-05-25 20:05:49 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2010-05-25 20:05:49 +0000
commit0f23950db36b51dc2607efd473c15e7cf3d3b735 (patch)
tree6e081626750cc6fac5c3c8febb3a6fa56ec79d2c
parentd03d4b54a9b4096ec5f9b84e8af1c08314fdd75e (diff)
Make sure that we really mark the FPU registers clean.
ok deraadt@
-rw-r--r--lib/libpthread/arch/sparc64/uthread_machdep_asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/sparc64/uthread_machdep_asm.S b/lib/libpthread/arch/sparc64/uthread_machdep_asm.S
index 55bfb6d555b..7b4ab4cea94 100644
--- a/lib/libpthread/arch/sparc64/uthread_machdep_asm.S
+++ b/lib/libpthread/arch/sparc64/uthread_machdep_asm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_machdep_asm.S,v 1.8 2004/02/02 10:05:55 brad Exp $ */
+/* $OpenBSD: uthread_machdep_asm.S,v 1.9 2010/05/25 20:05:48 kettenis Exp $ */
/* David Leonard <d@csee.uq.edu.au>. Public domain. */
#include <machine/asm.h>
@@ -81,7 +81,7 @@ ENTRY(_thread_machdep_fpsave)
std %f62, [%o0 + 31 * 8]
/* disable fpu and mark both sides clean */
- wr %o1, FPRS_ENA|FPRS_DL|FPRS_DU, %fprs
+ wr %g0, 0, %fprs
1:
retl