about summary refs log tree commit diff
path: root/sysdeps/ia64
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-07-03 21:51:01 -0700
committerMike Frysinger <vapier@gentoo.org>2014-08-04 09:53:49 -0400
commitca08746f9f9eec5b641e49263877a12348bd8b74 (patch)
tree7b3b9c9c3b458800c536dfd7db25e78ceff8e422 /sysdeps/ia64
parent9c925ff964bf221207dd6727d468ee964e2725fd (diff)
downloadglibc-ca08746f9f9eec5b641e49263877a12348bd8b74.tar.gz
glibc-ca08746f9f9eec5b641e49263877a12348bd8b74.tar.xz
glibc-ca08746f9f9eec5b641e49263877a12348bd8b74.zip
IA64: Define TLS_DEFINE_INIT_TP
Diffstat (limited to 'sysdeps/ia64')
-rw-r--r--sysdeps/ia64/nptl/tls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/ia64/nptl/tls.h b/sysdeps/ia64/nptl/tls.h
index 3eca4e68be..e38352a973 100644
--- a/sysdeps/ia64/nptl/tls.h
+++ b/sysdeps/ia64/nptl/tls.h
@@ -121,6 +121,10 @@ register struct pthread *__thread_self __asm__("r13");
 # define TLS_INIT_TP(thrdescr) \
   (__thread_self = (thrdescr), INIT_SYSINFO, NULL)
 
+/* Value passed to 'clone2' for initialization of the thread register.  */
+# define TLS_DEFINE_INIT_TP(tp, pd) \
+  void *tp = (char *) (pd) + TLS_PRE_TCB_SIZE
+
 /* Return the address of the dtv for the current thread.  */
 #  define THREAD_DTV() \
   (((tcbhead_t *)__thread_self)->dtv)