summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
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>