]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2003-07-03 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Thu, 3 Jul 2003 23:55:19 +0000 (23:55 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 3 Jul 2003 23:55:19 +0000 (23:55 +0000)
* sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr):
Apply sizeof (struct pthread) bias to r13 value.

nptl/sysdeps/ia64/td_ta_map_lwp2thr.c

index a8231848ea499069f1777eae01aa996cd81145dc..b9f32eb8a1ce06fe016d726ea4152ff79e25a40f 100644 (file)
@@ -35,7 +35,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
     return TD_ERR;
 
   /* IA-64 thread register is r13.  */
-  th->th_unique = (void *) regs[13];
+  th->th_unique = (void *) (((struct pthread *) regs[13]) - 1);
 
   /* Found it.  Now complete the `td_thrhandle_t' object.  */
   th->th_ta_p = (td_thragent_t *) ta;