summaryrefslogtreecommitdiff
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/arch')
-rw-r--r--lib/libpthread/arch/sparc/uthread_machdep_asm.S10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libpthread/arch/sparc/uthread_machdep_asm.S b/lib/libpthread/arch/sparc/uthread_machdep_asm.S
index 53ce8770df9..03baf530bef 100644
--- a/lib/libpthread/arch/sparc/uthread_machdep_asm.S
+++ b/lib/libpthread/arch/sparc/uthread_machdep_asm.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_machdep_asm.S,v 1.8 2003/02/14 20:23:20 jason Exp $ */
+/* $OpenBSD: uthread_machdep_asm.S,v 1.9 2004/02/02 20:43:37 brad Exp $ */
/* David Leonard <d@csee.uq.edu.au>. Public domain. */
#include <machine/asm.h>
@@ -9,12 +9,6 @@
* On sparc this also means we switch register windows.
*/
-#ifdef __sparcv9__
-#define flushw .word 0x81580000
-#else
-#define flushw t ST_FLUSHWIN
-#endif
-
#define SA(x) (((x)+7)&(~0x7))
#define MINFRAME ((16+1+6)*4)
@@ -28,7 +22,7 @@ ENTRY(_thread_machdep_switch)
save %sp, -SA(MINFRAME), %sp
/* flush all windows (except current one) into memory frames */
- flushw
+ t ST_FLUSHWIN
/* switch the stack pointer and return address */
st %fp, [%i1 + 0]