Commit 169bb110 by Richard Henderson Committed by Richard Henderson

posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.

        * include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
        (_Jv_ThreadSelf): Use __builtin_thread_pointer.

From-SVN: r88894
parent 176ba833
2004-10-11 Richard Henderson <rth@redhat.com>
* include/posix-threads.h <__alpha__> (_Jv_ThreadId_t): Use void*.
(_Jv_ThreadSelf): Use __builtin_thread_pointer.
2004-10-08 Bryce McKinlay <mckinlay@redhat.com> 2004-10-08 Bryce McKinlay <mckinlay@redhat.com>
* java/util/Calendar.java (set): Invalidate DST_OFFSET * java/util/Calendar.java (set): Invalidate DST_OFFSET
......
...@@ -241,23 +241,12 @@ _Jv_ThreadSelf (void) ...@@ -241,23 +241,12 @@ _Jv_ThreadSelf (void)
#ifdef __alpha__ #ifdef __alpha__
#ifdef __FreeBSD__ typedef void *_Jv_ThreadId_t;
#include <machine/pal.h>
#define PAL_rduniq PAL_rdunique
#elif defined (__osf__)
#include <machine/pal.h>
#else
#include <asm/pal.h>
#endif
typedef unsigned long _Jv_ThreadId_t;
inline _Jv_ThreadId_t inline _Jv_ThreadId_t
_Jv_ThreadSelf (void) _Jv_ThreadSelf (void)
{ {
register unsigned long id __asm__("$0"); return __builtin_thread_pointer ();
__asm__ ("call_pal %1" : "=r"(id) : "i"(PAL_rduniq));
return id;
} }
#define JV_SELF_DEFINED #define JV_SELF_DEFINED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment