From cc618d93e77dfbaac3b7e7e04a01eeac8fd4e63f Mon Sep 17 00:00:00 2001 From: chs Date: Sun, 14 Dec 2014 23:49:17 +0000 Subject: 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. --- lib/libc/tls/tls.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'lib/libc') 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 -__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; } -- cgit