diff options
author | Stafford Horne <shorne@gmail.com> | 2017-11-25 15:30:47 +0900 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2017-11-25 17:46:25 +0100 |
commit | b654d10d3289c45b1fb702378bd4b96afb11c998 (patch) | |
tree | c9cc19be24b1f57a58189419adf2a4e482c3530e /libpthread/nptl/sysdeps | |
parent | 82cf6e18bc5e98fa203f98534bde1549a9263e4c (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/nptl/sysdeps')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c | 4 |
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> |