From b654d10d3289c45b1fb702378bd4b96afb11c998 Mon Sep 17 00:00:00 2001 From: Stafford Horne Date: Sat, 25 Nov 2017 15:30:47 +0900 Subject: 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 --- libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c | 4 ++-- 1 file 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 .  */ /* 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 -- cgit v1.2.3