1
0
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:
Roland McGrath
2014-06-11 12:23:35 -07:00
parent f12b481486
commit ba5ec6116c
3 changed files with 6 additions and 22 deletions

View File

@@ -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)