diff options
| author | chs <chs@NetBSD.org> | 2014-12-14 23:49:17 +0000 |
|---|---|---|
| committer | chs <chs@NetBSD.org> | 2014-12-14 23:49:17 +0000 |
| commit | cc618d93e77dfbaac3b7e7e04a01eeac8fd4e63f (patch) | |
| tree | 5a6257f8a070bb2d0a79f94050ba9b68a1a323d1 /lib/libc/tls | |
| parent | 5550f0634311889b2b774b801881bed8d0f4eb4c (diff) | |
fix powerpc TLS problems by removing the hacks for PPC EABI.
the kernel no longer treats R2 specially and its use as
the TLS register is now handled entirely in userland.
Diffstat (limited to 'lib/libc/tls')
| -rw-r--r-- | lib/libc/tls/tls.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libc/tls/tls.c b/lib/libc/tls/tls.c index d008e17da49..7f7b05018b0 100644 --- a/lib/libc/tls/tls.c +++ b/lib/libc/tls/tls.c @@ -1,4 +1,4 @@ -/* $NetBSD: tls.c,v 1.7 2013/08/19 22:14:37 matt Exp $ */ +/* $NetBSD: tls.c,v 1.8 2014/12/14 23:49:17 chs Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: tls.c,v 1.7 2013/08/19 22:14:37 matt Exp $"); +__RCSID("$NetBSD: tls.c,v 1.8 2014/12/14 23:49:17 chs Exp $"); #include "namespace.h" @@ -155,15 +155,6 @@ __libc_static_tls_setup(void) struct tls_tcb *tcb; if (&rtld_DYNAMIC != NULL) { -#ifdef __powerpc__ - /* - * Old powerpc crt0's are going to overwrite r2 so we need to - * restore it but only do so if the saved value isn't NULL (if - * it is NULL, ld.elf_so doesn't have the matching change). - */ - if ((tcb = _lwp_getprivate()) != NULL) - __lwp_settcb(tcb); -#endif return; } |
