(THREAD_SELF): Adjust use of p_self.
authordrepper <drepper>
Fri, 5 May 2000 08:06:46 +0000 (08:06 +0000)
committerdrepper <drepper>
Fri, 5 May 2000 08:06:46 +0000 (08:06 +0000)
linuxthreads/sysdeps/i386/useldt.h

index e6055e0..bd527a3 100644 (file)
@@ -54,7 +54,8 @@ extern int __modify_ldt (int, struct modify_ldt_ldt_s *, size_t);
 ({                                                                           \
   register pthread_descr __self;                                             \
   __asm__ ("movl %%gs:%c1,%0" : "=r" (__self)                                \
-          : "i" (offsetof (struct _pthread_descr_struct, p_self)));          \
+          : "i" (offsetof (struct _pthread_descr_struct,                     \
+                           p_header.data.self)));                            \
   __self;                                                                    \
 })