mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Alpha: Define TLS_DEFINE_INIT_TP
This commit is contained in:
@@ -87,6 +87,9 @@ typedef struct
|
||||
# define TLS_INIT_TP(tcbp) \
|
||||
(__builtin_set_thread_pointer ((void *)(tcbp)), NULL)
|
||||
|
||||
/* Value passed to 'clone' for initialization of the thread register. */
|
||||
# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd) + 1
|
||||
|
||||
/* Return the address of the dtv for the current thread. */
|
||||
# define THREAD_DTV() \
|
||||
(((tcbhead_t *) __builtin_thread_pointer ())->dtv)
|
||||
|
Reference in New Issue
Block a user