[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commits] r21897 - in /fsf/glibc-2_16-branch/ports: ChangeLog.tile sysdeps/tile/__tls_get_addr.S



Author: eglibc
Date: Fri Nov 30 00:09:34 2012
New Revision: 21897

Log:
Import glibc-ports-2.16 for 2012-11-30

Modified:
    fsf/glibc-2_16-branch/ports/ChangeLog.tile
    fsf/glibc-2_16-branch/ports/sysdeps/tile/__tls_get_addr.S

Modified: fsf/glibc-2_16-branch/ports/ChangeLog.tile
==============================================================================
--- fsf/glibc-2_16-branch/ports/ChangeLog.tile (original)
+++ fsf/glibc-2_16-branch/ports/ChangeLog.tile Fri Nov 30 00:09:34 2012
@@ -1,3 +1,7 @@
+2012-11-29  Chris Metcalf  <cmetcalf@xxxxxxxxxx>
+
+	* sysdeps/tile/__tls_get_addr.S: Fix TLS module initialization bug.
+
 2012-09-06  Chris Metcalf  <cmetcalf@xxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/tile/sys/procfs.h: Fix type of prfpregset_t.

Modified: fsf/glibc-2_16-branch/ports/sysdeps/tile/__tls_get_addr.S
==============================================================================
--- fsf/glibc-2_16-branch/ports/sysdeps/tile/__tls_get_addr.S (original)
+++ fsf/glibc-2_16-branch/ports/sysdeps/tile/__tls_get_addr.S Fri Nov 30 00:09:34 2012
@@ -76,6 +76,8 @@
 	 ADD_PTR r28, r28, r27	/* pointer into module array */
 	}
 	LD_PTR r26, r28		/* r26 = module TLS pointer */
+	CMPEQI r25, r26, -1     /* check r26 == TLS_DTV_UNALLOCATED */
+	BNEZ r25, .Lslowpath
 	{
 	 ADD_PTR r0, r26, r29
 	 jrp lr

_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits