aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/ia64
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-07-03 23:55:19 +0000
committerRoland McGrath <roland@gnu.org>2003-07-03 23:55:19 +0000
commit65984e98397006c57385fd7ad206df091ad28587 (patch)
tree1a1ca2d44a21d75d63a4aafc4030a590af4d8ed3 /nptl/sysdeps/ia64
parenta916cb664b5b0e3287ae7b11e5d9410efc2856df (diff)
downloadglibc-65984e98397006c57385fd7ad206df091ad28587.tar
glibc-65984e98397006c57385fd7ad206df091ad28587.tar.gz
glibc-65984e98397006c57385fd7ad206df091ad28587.tar.bz2
glibc-65984e98397006c57385fd7ad206df091ad28587.zip
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.
Diffstat (limited to 'nptl/sysdeps/ia64')
-rw-r--r--nptl/sysdeps/ia64/td_ta_map_lwp2thr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/ia64/td_ta_map_lwp2thr.c b/nptl/sysdeps/ia64/td_ta_map_lwp2thr.c
index a8231848ea..b9f32eb8a1 100644
--- a/nptl/sysdeps/ia64/td_ta_map_lwp2thr.c
+++ b/nptl/sysdeps/ia64/td_ta_map_lwp2thr.c
@@ -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;