Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/tls Use __lwp_settcb if available.
details: https://anonhg.NetBSD.org/src/rev/76f3f8dd8122
branches: trunk
changeset: 763174:76f3f8dd8122
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 12 07:52:37 2011 +0000
description:
Use __lwp_settcb if available.
diffstat:
lib/libc/tls/tls.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 2988d38e19ad -r 76f3f8dd8122 lib/libc/tls/tls.c
--- a/lib/libc/tls/tls.c Sat Mar 12 07:46:29 2011 +0000
+++ b/lib/libc/tls/tls.c Sat Mar 12 07:52:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tls.c,v 1.2 2011/03/09 23:50:40 joerg Exp $ */
+/* $NetBSD: tls.c,v 1.3 2011/03/12 07:52:37 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tls.c,v 1.2 2011/03/09 23:50:40 joerg Exp $");
+__RCSID("$NetBSD: tls.c,v 1.3 2011/03/12 07:52:37 matt Exp $");
#include "namespace.h"
@@ -150,7 +150,11 @@
dl_iterate_phdr(__libc_static_tls_setup_cb, NULL);
tcb = _rtld_tls_allocate();
+#ifdef __HAVE___LWP_SETTCB
+ __lwp_settcb(tcb);
+#else
_lwp_setprivate(tcb);
+#endif
}
#endif /* __HAVE_TLS_VARIANT_I || __HAVE_TLS_VARIANT_II */
Home |
Main Index |
Thread Index |
Old Index