This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PPC linuxthreads tls.h fix


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__ */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]