summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2017-11-25 15:30:47 +0900
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-11-25 17:46:25 +0100
commitb654d10d3289c45b1fb702378bd4b96afb11c998 (patch)
treec9cc19be24b1f57a58189419adf2a4e482c3530e /libpthread
parent82cf6e18bc5e98fa203f98534bde1549a9263e4c (diff)
or1k: Fix tls value passed during clone
From or1k-glibc from blueCmd, his commit "Fix TLS, removed too much in rebase". Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c b/libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c
index 90838ddc5..e523c70b4 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c
@@ -16,8 +16,8 @@
not, see <http://www.gnu.org/licenses/>.  */
/* Value passed to 'clone' for initialization of the thread register. */
-#define TLS_VALUE (pd + 1)
-
+#define TLS_VALUE ((void *) (pd) \
+ + TLS_PRE_TCB_SIZE + TLS_INIT_TCB_SIZE)
/* Get the real implementation. */
#include <sysdeps/pthread/createthread.c>