]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add x32 support to tcbhead_t
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 May 2012 03:58:24 +0000 (20:58 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 May 2012 03:58:24 +0000 (20:58 -0700)
nptl/ChangeLog
nptl/sysdeps/x86_64/tls.h

index bf7e11aa9c9689f1fb372f7ef5c7fb3aba5abe84..cfc679cbe8c426aad61baab2d7b40b0dbd643a20 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/tls.h: Don't include <bits/wordsize.h>.
+       (tcbhead_t): Remove __x86_64__ check.  Align rtld_savespace_sse
+       to 32 bytes.
+
 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/pthread/pthread.h (__PTHREAD_RWLOCK_INT_FLAGS_SHARED):
index 77f04f2029bbca3ca3b0461ecd2fccc55998175b..f8389160581175cd97001788e9c6dc7b97a3f2ee 100644 (file)
@@ -27,7 +27,6 @@
 # include <stdlib.h>
 # include <sysdep.h>
 # include <kernel-features.h>
-# include <bits/wordsize.h>
 # include <xmmintrin.h>
 
 
@@ -60,18 +59,14 @@ typedef struct
 # else
   int __unused1;
 # endif
-# if __WORDSIZE == 64
   int rtld_must_xmm_save;
-# endif
   /* Reservation of some values for the TM ABI.  */
   void *__private_tm[5];
-# if __WORDSIZE == 64
   long int __unused2;
   /* Have space for the post-AVX register size.  */
-  __m128 rtld_savespace_sse[8][4];
+  __m128 rtld_savespace_sse[8][4] __attribute__ ((aligned (32)));
 
   void *__padding[8];
-# endif
 } tcbhead_t;
 
 #else /* __ASSEMBLER__ */