summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-06-12 14:33:43 -0700
committerRoland McGrath <roland@hack.frob.com>2014-06-12 14:33:43 -0700
commitb0725f43245ce50cfafa7de41bb7aeb8e4c4cb00 (patch)
tree7fe92c179f5ae1e1bb7b853cd9eb6d1c56b8c11f
parentb14368b8957a7be463a6b95e57f43a528fac4c8c (diff)
SPARC: Define TLS_DEFINE_INIT_TP
-rw-r--r--ChangeLog2
-rw-r--r--nptl/sysdeps/sparc/tls.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f3a99d6e0..c1e52417bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-06-12 Roland McGrath <roland@hack.frob.com>
+ * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
+
* sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
* nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
diff --git a/nptl/sysdeps/sparc/tls.h b/nptl/sysdeps/sparc/tls.h
index 4a1dce7f65..5ea9355235 100644
--- a/nptl/sysdeps/sparc/tls.h
+++ b/nptl/sysdeps/sparc/tls.h
@@ -110,6 +110,9 @@ register struct pthread *__thread_self __asm__("%g7");
# define TLS_INIT_TP(descr) \
(__thread_self = (__typeof (__thread_self)) (descr), NULL)
+/* Value passed to 'clone' for initialization of the thread register. */
+# define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd)
+
/* Return the address of the dtv for the current thread. */
# define THREAD_DTV() \
(((tcbhead_t *) __thread_self)->dtv)