summaryrefslogtreecommitdiff
path: root/sysdeps/hppa
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-09 14:04:45 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-09 14:04:45 -0700
commit34eda6d1ba90865f7853d0ee3cdee68cc6f7e00e (patch)
treeef54356514cfdc8228d9eb39d7ac91aa8a12ca94 /sysdeps/hppa
parent50f0a637b729f0b8ecf4f299ae3a6b33eb9c9cb7 (diff)
downloadglibc-34eda6d1ba90865f7853d0ee3cdee68cc6f7e00e.tar.gz
HPPA: Define TLS_DEFINE_INIT_TP
Diffstat (limited to 'sysdeps/hppa')
-rw-r--r--sysdeps/hppa/nptl/tls.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/hppa/nptl/tls.h b/sysdeps/hppa/nptl/tls.h
index 6c721e0c64..c8a4317145 100644
--- a/sysdeps/hppa/nptl/tls.h
+++ b/sysdeps/hppa/nptl/tls.h
@@ -98,6 +98,9 @@ typedef struct
# define TLS_INIT_TP(tcbp) \
({ __set_cr27(tcbp); NULL; })
+/* Value passed to 'clone' for initialization of the thread register. */
+# 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 = (tcbhead_t *)__get_cr27(); \