mirror of git://sourceware.org/git/glibc.git
2003-07-03 Roland McGrath <roland@redhat.com>
* sysdeps/ia64/td_ta_map_lwp2thr.c (td_ta_map_lwp2thr): Apply sizeof (struct pthread) bias to r13 value.
This commit is contained in:
parent
a916cb664b
commit
65984e9839
|
|
@ -35,7 +35,7 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
|
||||||
return TD_ERR;
|
return TD_ERR;
|
||||||
|
|
||||||
/* IA-64 thread register is r13. */
|
/* 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. */
|
/* Found it. Now complete the `td_thrhandle_t' object. */
|
||||||
th->th_ta_p = (td_thragent_t *) ta;
|
th->th_ta_p = (td_thragent_t *) ta;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue