[PATCH] Linuxthreads PPC64 sysdep-cancel.h
Andreas Jaeger
aj@suse.de
Tue Dec 16 10:58:00 GMT 2003
Andreas Jaeger <aj@suse.de> writes:
> Steve Munroe <sjmunroe@us.ibm.com> writes:
>
>> The SINGLE_THREAD_P test is still defined using the static field
>> __local_multiple_threads which is less efficient then the thread local
>> reference to the p_multiple_threads field. Also as Jimi Xenidis points
>> out, the current code is incorrectly loading a int flag as a
>> doubleword. The attached patch replaces the two definitions of
>> SINGLE_THREAD_P with thread local test.
>>
>> 2003-12-04 Steven Munroe <sjmunroe@us.ibm.com>
>>
>> * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
>> (SINGLE_THREAD_P): Test using thread local p_multiple_threads field.
>
> This patch is broken since now glibc will no longer bootstrap since we
> have in linuxthreads/sysdeps/powerpc/tls.h:
>
> /* Make sure we have the p_multiple_threads member in the thread structure.
> See below. */
> # ifndef __powerpc64__
> # define TLS_MULTIPLE_THREADS_IN_TCB 1
> # endif
>
> We're currently testing a patch that defines
> TLS_MULTIPLE_THREADS_IN_TCB also on powerpc64. Or do you propose
> another solution?
That alone is not enough, there're further problems. I'll wait until
Steve is back from vacation and fixes linuxthreads properly,
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20031216/fc67e93e/attachment.sig>
More information about the Libc-alpha
mailing list