Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 9 Feb 2002 06:13:03 +0000 (06:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 9 Feb 2002 06:13:03 +0000 (06:13 +0000)
2002-02-08  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/i386/tls.h (TLS_INIT_TP): Also initialize %gs.

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

index b698385..79a3cce 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-08  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/i386/tls.h (TLS_INIT_TP): Also initialize %gs.
+
 2002-02-08  Richard Henderson  <rth@twiddle.net>
 
        * sysdeps/alpha/elf/pt-initfini.c: Use \n\ for multiline string.
index 4d701cc..79e4fde 100644 (file)
@@ -94,6 +94,8 @@ typedef struct
     if (__builtin_expect (result, 0) != 0)                                   \
       /* Nothing else we can do.  */                                         \
       asm ("hlt");                                                           \
+                                                                             \
+    asm ("movw %w0, %%gs" : : "q" (7));                                              \
   } while (0)