aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/sh/tls.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-09 13:09:52 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-09 15:54:23 -0700
commitacaa4d24f507976d10a82dc31152eb912b59b4bc (patch)
tree36641004c31c636380f892e7359d22031645ff28 /nptl/sysdeps/sh/tls.h
parentd752f0ccd7765c6accca2d4f2dbc6dc2a6f3b066 (diff)
downloadglibc-acaa4d24f507976d10a82dc31152eb912b59b4bc.zip
glibc-acaa4d24f507976d10a82dc31152eb912b59b4bc.tar.gz
glibc-acaa4d24f507976d10a82dc31152eb912b59b4bc.tar.bz2
SH: Define TLS_DEFINE_INIT_TP
Diffstat (limited to 'nptl/sysdeps/sh/tls.h')
-rw-r--r--nptl/sysdeps/sh/tls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/sysdeps/sh/tls.h b/nptl/sysdeps/sh/tls.h
index a0660d2..d4d3e93 100644
--- a/nptl/sysdeps/sh/tls.h
+++ b/nptl/sysdeps/sh/tls.h
@@ -102,6 +102,8 @@ typedef struct
# define TLS_INIT_TP(tcbp) \
({ __asm __volatile ("ldc %0,gbr" : : "r" (tcbp)); 0; })
+# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd) + 1
+
/* Return the address of the dtv for the current thread. */
# define THREAD_DTV() \
({ tcbhead_t *__tcbp; \