summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-31 10:28:52 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-31 10:28:52 +0000
commit653b0c120fb2ef2f1efe9df3c68c3e5cdb4afe09 (patch)
tree927a8ab1212144b579e50fea38da61d53ffd4196 /defines.h
parent559ca6258a4926b4e813e1341345b0e5f432017c (diff)
* array.c (rb_ary_transpose): Properly declare ary as a VALUE.
* file.c (rb_file_s_chmod): Do not directly cast an int to void * to avoid a warning. * defines.h (FLUSH_REGISTER_WINDOWS): Add support for FreeBSD/sparc64. miniruby still coredumps in a different place, though. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 52d9856..cb488d7 100644
--- a/defines.h
+++ b/defines.h
@@ -140,7 +140,9 @@ void xfree _((void*));
#if defined(sparc) || defined(__sparc__)
# if defined(linux) || defined(__linux__)
#define FLUSH_REGISTER_WINDOWS asm("ta 0x83")
-# else /* Solaris, not sparc linux */
+# elif defined(__FreeBSD__) && defined(__sparc64__)
+#define FLUSH_REGISTER_WINDOWS asm volatile("flushw" : :)
+# else /* Solaris, OpenBSD, NetBSD, etc. */
#define FLUSH_REGISTER_WINDOWS asm("ta 0x03")
# endif /* trap always to flush register windows if we are on a Sparc system */
#else /* Not a sparc, so */