[PATCH] PPC linuxthreads tls.h fix
Steven Munroe
sjmunroe@us.ibm.com
Thu Feb 27 23:57:00 GMT 2003
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@us.ibm.com>
* sysdeps/powerpc/tls.h: Correct struct tcbhead_t.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
-------------- next part --------------
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__ */
More information about the Libc-alpha
mailing list