This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH roland/tls-init] SPARC: Define TLS_DEFINE_INIT_TP
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 9 Jun 2014 13:57:39 -0700 (PDT)
- Subject: [PATCH roland/tls-init] SPARC: Define TLS_DEFINE_INIT_TP
- Authentication-results: sourceware.org; auth=none
Not tested at all, but this should not change anything.
OK?
Thanks,
Roland
* nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
--- a/nptl/sysdeps/sparc/tls.h
+++ b/nptl/sysdeps/sparc/tls.h
@@ -110,6 +110,9 @@ register struct pthread *__thread_self __asm__("%g7");
# define TLS_INIT_TP(descr) \
(__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. */
# define THREAD_DTV() \
(((tcbhead_t *) __thread_self)->dtv)