]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 20 Apr 2003 08:25:06 +0000 (08:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 20 Apr 2003 08:25:06 +0000 (08:25 +0000)
* sysdeps/i386/useldt.h (DO_SET_THREAD_AREA): Make sure the
compiler knows we use the ldt_entry variable and that the syscall
modifies the memory.

linuxthreads/ChangeLog
linuxthreads/sysdeps/i386/useldt.h

index 093cce8e2c2aa7cf56f55c9a99bd277719e8f89c..cf59f3cc6309451af85d9a148d2fe9992d959b72 100644 (file)
@@ -1,5 +1,9 @@
 2003-04-20  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/i386/useldt.h (DO_SET_THREAD_AREA): Make sure the
+       compiler knows we use the ldt_entry variable and that the syscall
+       modifies the memory.
+
        * internals.h: Split pthread_functions definition into...
        * sysdeps/pthread/pthread-functions.h: ...new file.
 
index a4d4fd22c88fee2760e689a1ba8ea76f42636a8d..4ac82f1ab078bc912e0b9885bd3c28b0cca206c5 100644 (file)
@@ -110,7 +110,9 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
             "int $0x80\n\t"                                                  \
             USETLS_LOAD_EBX                                                  \
             : "=&a" (__result)                                               \
-            : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area));      \
+            : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area),       \
+              "m" (ldt_entry)                                                \
+            : "memory");                                                     \
       if (__result == 0)                                                     \
        asm ("movw %w0, %%gs" :: "q" (__gs));                                 \
       else                                                                   \
@@ -128,7 +130,9 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
             "int $0x80\n\t"                                                  \
             USETLS_LOAD_EBX                                                  \
             : "=&a" (__result)                                               \
-            : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area));      \
+            : USETLS_EBX_ARG (&ldt_entry), "i" (__NR_set_thread_area),       \
+              "m" (ldt_entry)                                                \
+            : "memory");                                                     \
       if (__result == 0)                                                     \
        {                                                                     \
          __gs = (ldt_entry.entry_number << 3) + 3;                           \
This page took 0.044906 seconds and 5 git commands to generate.