From 974ac3d67864d946f8cf75f3db7cab699bc8d8aa Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 9 Feb 2002 06:13:03 +0000 Subject: Update. 2002-02-08 Ulrich Drepper * sysdeps/i386/tls.h (TLS_INIT_TP): Also initialize %gs. --- linuxthreads/sysdeps/i386/tls.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linuxthreads/sysdeps/i386') diff --git a/linuxthreads/sysdeps/i386/tls.h b/linuxthreads/sysdeps/i386/tls.h index 4d701cc6e8..79e4fde9c7 100644 --- a/linuxthreads/sysdeps/i386/tls.h +++ b/linuxthreads/sysdeps/i386/tls.h @@ -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) -- cgit 1.4.1