summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2009-01-23 04:38:18 +0000
committerChong Yidong <cyd@stupidchicken.com>2009-01-23 04:38:18 +0000
commit4c1616bee482b2921251c1ee00fc00a4c38e7cb5 (patch)
tree8eb04ba79683d0efb446b53cbde2cae6b73147df /src/alloc.c
parent3ac71f5da0335f4ed4c7d4bcc8d1dbab37ab316b (diff)
(mark_stack): Use "flushw" instead of "ta 3" assembly call for
Sparc64.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 90c743a5d38..1be5e2b8f1d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4488,8 +4488,12 @@ mark_stack ()
needed on ia64 too. See mach_dep.c, where it also says inline
assembler doesn't work with relevant proprietary compilers. */
#ifdef __sparc__
+#ifdef __sparc64__
+ asm ("flushw");
+#else
asm ("ta 3");
#endif
+#endif
/* Save registers that we need to see on the stack. We need to see
registers used to hold register variables and registers used to