diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-06-09 13:45:09 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-06-11 12:25:27 -0700 |
commit | c9cab3d2f969ab15cbd91744c80482a0fb818668 (patch) | |
tree | 5171c70e4bb6d97502b6ac4e19bc712b60994d61 /sysdeps/tile | |
parent | d3996c790576b960e6431992e7018bdfb44411cc (diff) | |
download | glibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.zip glibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.tar.gz glibc-c9cab3d2f969ab15cbd91744c80482a0fb818668.tar.bz2 |
Tile: Define TLS_DEFINE_INIT_TP
Diffstat (limited to 'sysdeps/tile')
-rw-r--r-- | sysdeps/tile/nptl/tls.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/tile/nptl/tls.h b/sysdeps/tile/nptl/tls.h index c93e8a8..296d340 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) |