mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
SPARC: Define TLS_DEFINE_INIT_TP
This commit is contained in:
parent
b14368b895
commit
b0725f4324
@ -1,5 +1,7 @@
|
|||||||
2014-06-12 Roland McGrath <roland@hack.frob.com>
|
2014-06-12 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
|
* sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
|
||||||
* nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
|
* nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
|
||||||
|
|
||||||
|
@ -110,6 +110,9 @@ register struct pthread *__thread_self __asm__("%g7");
|
|||||||
# define TLS_INIT_TP(descr) \
|
# define TLS_INIT_TP(descr) \
|
||||||
(__thread_self = (__typeof (__thread_self)) (descr), NULL)
|
(__thread_self = (__typeof (__thread_self)) (descr), NULL)
|
||||||
|
|
||||||
|
/* Value passed to 'clone' for initialization of the thread register. */
|
||||||
|
# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd)
|
||||||
|
|
||||||
/* Return the address of the dtv for the current thread. */
|
/* Return the address of the dtv for the current thread. */
|
||||||
# define THREAD_DTV() \
|
# define THREAD_DTV() \
|
||||||
(((tcbhead_t *) __thread_self)->dtv)
|
(((tcbhead_t *) __thread_self)->dtv)
|
||||||
|
Loading…
Reference in New Issue
Block a user