aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2001-07-23 03:51:17 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2001-07-23 03:51:17 +0000
commit092a1f5ab3fa380240b5452d20ab83d150ee70c4 (patch)
tree1a10855b6573d1527d123a6882488123ba1b42b5 /libjava/include
parent0b6301aebeb907d1ebaee5b075c05595db9fa08f (diff)
downloadgcc-092a1f5ab3fa380240b5452d20ab83d150ee70c4.zip
gcc-092a1f5ab3fa380240b5452d20ab83d150ee70c4.tar.gz
gcc-092a1f5ab3fa380240b5452d20ab83d150ee70c4.tar.bz2
configure.host: Enable hash synchronization for alpha*-*.
* configure.host: Enable hash synchronization for alpha*-*. * include/posix-threads.h (_Jv_ThreadSelf): Added inline function for alpha. * java/lang/natObject.cc (compare_and_swap, release_set, compare_and_swap_release): Added inline functions for alpha. From-SVN: r44251
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/posix-threads.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libjava/include/posix-threads.h b/libjava/include/posix-threads.h
index e033209..a268f1d 100644
--- a/libjava/include/posix-threads.h
+++ b/libjava/include/posix-threads.h
@@ -250,6 +250,24 @@ _Jv_ThreadSelf (void)
#endif /* __ia64__ */
+#ifdef __alpha__
+
+#include <asm/pal.h>
+
+typedef unsigned long _Jv_ThreadId_t;
+
+inline _Jv_ThreadId_t
+_Jv_ThreadSelf (void)
+{
+ unsigned long id;
+ __asm__ ("call_pal %1\n\tmov $0, %0" : "=r"(id) : "i"(PAL_rduniq) : "$0");
+ return id;
+}
+
+#define JV_SELF_DEFINED
+
+#endif /* __alpha__ */
+
#if defined(SLOW_PTHREAD_SELF)
typedef pthread_t _Jv_ThreadId_t;