about summary refs log tree commit diff
path: root/sysdeps/tile
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-09 13:45:09 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-11 12:25:27 -0700
commitc9cab3d2f969ab15cbd91744c80482a0fb818668 (patch)
tree5171c70e4bb6d97502b6ac4e19bc712b60994d61 /sysdeps/tile
parentd3996c790576b960e6431992e7018bdfb44411cc (diff)
downloadglibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.tar.gz
glibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.tar.xz
glibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.zip
Tile: Define TLS_DEFINE_INIT_TP
Diffstat (limited to 'sysdeps/tile')
-rw-r--r--sysdeps/tile/nptl/tls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/tile/nptl/tls.h b/sysdeps/tile/nptl/tls.h
index c93e8a88c3..296d34037b 100644
--- a/sysdeps/tile/nptl/tls.h
+++ b/sysdeps/tile/nptl/tls.h
@@ -109,6 +109,10 @@ register void *__thread_pointer asm ("tp");
 # define TLS_INIT_TP(tcbp) \
     (__thread_pointer = (char *)(tcbp) + TLS_TCB_OFFSET, NULL)
 
+/* Value passed to 'clone' for initialization of the thread register.  */
+# define TLS_DEFINE_INIT_TP(tp, pd) \
+  void *tp = (void *) (pd) + TLS_TCB_OFFSET + TLS_PRE_TCB_SIZE
+
 /* Return the address of the dtv for the current thread.  */
 # define THREAD_DTV() \
     (((tcbhead_t *) (__thread_pointer - TLS_TCB_OFFSET))[-1].dtv)