diff options
author | knu <knu@FreeBSD.org> | 2002-12-31 10:41:03 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-12-31 10:41:03 +0000 |
commit | cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea (patch) | |
tree | 53e87fcaef29dafaedb4022f815c417f78b1c7b1 /lang | |
parent | d77732e3b0dd7ba2de173e989ce988c471cd9964 (diff) | |
download | FreeBSD-ports-cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea.zip FreeBSD-ports-cd2aa3b6d1717e0fc04a5c5780597f54ea5819ea.tar.gz |
Add a patch to support FreeBSD/sparc64.
Obtained from: self (Ruby CVS)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby/files/patch-defines.h | 30 | ||||
-rw-r--r-- | lang/ruby16/files/patch-defines.h | 30 |
2 files changed, 60 insertions, 0 deletions
diff --git a/lang/ruby/files/patch-defines.h b/lang/ruby/files/patch-defines.h new file mode 100644 index 0000000..a33d5d8 --- /dev/null +++ b/lang/ruby/files/patch-defines.h @@ -0,0 +1,30 @@ +Index: defines.h +=================================================================== +RCS file: /src/ruby/defines.h,v +retrieving revision 1.12.2.2 +retrieving revision 1.12.2.3 +diff -u -r1.12.2.2 -r1.12.2.3 +--- defines.h 4 Jan 2002 14:19:47 -0000 1.12.2.2 ++++ defines.h 31 Dec 2002 10:30:41 -0000 1.12.2.3 +@@ -2,8 +2,8 @@ + + defines.h - + +- $Author: matz $ +- $Date: 2002/01/04 14:19:47 $ ++ $Author: knu $ ++ $Date: 2002/12/31 10:30:41 $ + created at: Wed May 18 00:21:44 JST 1994 + + ************************************************/ +@@ -52,7 +52,9 @@ + #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 */ diff --git a/lang/ruby16/files/patch-defines.h b/lang/ruby16/files/patch-defines.h new file mode 100644 index 0000000..a33d5d8 --- /dev/null +++ b/lang/ruby16/files/patch-defines.h @@ -0,0 +1,30 @@ +Index: defines.h +=================================================================== +RCS file: /src/ruby/defines.h,v +retrieving revision 1.12.2.2 +retrieving revision 1.12.2.3 +diff -u -r1.12.2.2 -r1.12.2.3 +--- defines.h 4 Jan 2002 14:19:47 -0000 1.12.2.2 ++++ defines.h 31 Dec 2002 10:30:41 -0000 1.12.2.3 +@@ -2,8 +2,8 @@ + + defines.h - + +- $Author: matz $ +- $Date: 2002/01/04 14:19:47 $ ++ $Author: knu $ ++ $Date: 2002/12/31 10:30:41 $ + created at: Wed May 18 00:21:44 JST 1994 + + ************************************************/ +@@ -52,7 +52,9 @@ + #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 */ |