This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC linuxthreads tls.h fix
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>, Franz-Sirl <Franz-Sirl at lauterbach dot com>
- Date: Thu, 27 Feb 2003 17:34:27 -0600
- Subject: [PATCH] PPC linuxthreads tls.h fix
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
The PPC32/PPC64 TLS ABIs specify that the tcb is exactly 8/16 bytes and
that the first word/doubleword of the tcb is the dtv pointer. Similar to
Alpha.
2003-02-27 Steven Munroe <sjmunroe at us dot ibm dot com>
* sysdeps/powerpc/tls.h: Correct struct tcbhead_t.
--
Steven Munroe
sjmunroe at us dot ibm dot com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
diff -urN libc23-cvstip-20030227/linuxthreads/sysdeps/powerpc/tls.h libc23/linuxthreads/sysdeps/powerpc/tls.h
--- libc23-cvstip-20030227/linuxthreads/sysdeps/powerpc/tls.h 2003-02-27 14:47:12.000000000 -0600
+++ libc23/linuxthreads/sysdeps/powerpc/tls.h 2003-02-27 17:16:29.000000000 -0600
@@ -34,11 +34,9 @@
typedef struct
{
- void *tcb; /* Pointer to the TCB. Not necessary the
- thread descriptor used by libpthread. */
- dtv_t *dtv;
- void *self; /* Pointer to the thread descriptor. */
- int multiple_threads;
+ dtv_t *dtv;
+ /* Reserved for thread implementation. Not use in LinuxThreads. */
+ void *reserved;
} tcbhead_t;
#else /* __ASSEMBLER__ */