]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/i386/tls.h (TLS_DO_SET_THREAD_AREA): Calculate segment
authorRoland McGrath <roland@gnu.org>
Sat, 17 Aug 2002 06:54:04 +0000 (06:54 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 17 Aug 2002 06:54:04 +0000 (06:54 +0000)
register value from entry number properly.

linuxthreads/ChangeLog
linuxthreads/sysdeps/i386/tls.h

index 9fa83225e693f86bc242ea89a5cad6130cb15cf1..c2004912b366a783d69fe721b215d4e12d28a8af 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-16  Roland McGrath  <roland@redhat.com>
 
+       * sysdeps/i386/tls.h (TLS_DO_SET_THREAD_AREA): Calculate segment
+       register value from entry number properly.
+
        * sysdeps/i386/tls.h (TLS_DO_MODIFY_LDT): Rewrite asm to use %ebx
        optimally conditional on [__PIC__].
        (TLS_DO_SET_THREAD_AREA): New macro, implement inline syscall
index efbaebcd85089031e0b5ad1f6145b196b99fc361..5de8eca18d5deaa81b06592213a8c9c6cc047ca6 100644 (file)
@@ -130,7 +130,7 @@ typedef struct
                   to let the compiler know that we are accessing LDT_ENTRY   \
                   here.  */                                                  \
                TLS_EBX_ARG (&ldt_entry), "m" (ldt_entry));                   \
-    __builtin_expect (result, 0) == 0 ? ldt_entry.entry_number : -1;         \
+    __builtin_expect (result, 0) == 0 ? ldt_entry.entry_number * 8 + 3 : -1;  \
 })
 
 #  ifdef __ASSUME_SET_THREAD_AREA_SYSCALL
This page took 0.048238 seconds and 5 git commands to generate.