about summary refs log tree commit diff
path: root/nptl/sysdeps/s390/td_ta_map_lwp2thr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/s390/td_ta_map_lwp2thr.c')
-rw-r--r--nptl/sysdeps/s390/td_ta_map_lwp2thr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nptl/sysdeps/s390/td_ta_map_lwp2thr.c b/nptl/sysdeps/s390/td_ta_map_lwp2thr.c
index d12328f116..5b0bf840d8 100644
--- a/nptl/sysdeps/s390/td_ta_map_lwp2thr.c
+++ b/nptl/sysdeps/s390/td_ta_map_lwp2thr.c
@@ -35,10 +35,8 @@ td_ta_map_lwp2thr (const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th)
   if (ps_lgetregs (ta->ph, lwpid, regs) != PS_OK)
     return TD_ERR;
 
-  /* Get the thread area for the addressed thread.  */
-  if (ps_get_thread_area (ta->ph, lwpid, regs[18] >> 3, &th->th_unique)
-      != PS_OK)
-    return TD_ERR;	/* XXX Other error value?  */
+  /* S390 thread register is ACR0, aka register 18.  */
+  th->th_unique = (void *) regs[18];
 
   /* Found it.  Now complete the `td_thrhandle_t' object.  */
   th->th_ta_p = (td_thragent_t *) ta;