This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: New feature - HWCAP/HWCAP2 bits in the TCB
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>, GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Wed, 8 Jul 2015 13:33:03 -0500
- Subject: Re: [PATCH] powerpc: New feature - HWCAP/HWCAP2 bits in the TCB
- Authentication-results: sourceware.org; auth=none
- References: <55760314 dot 6070601 at linux dot vnet dot ibm dot com> <20150708060042 dot GP17734 at vapier> <DA4BC8B7-A383-4069-B915-27B40D304B40 at linux dot vnet dot ibm dot com> <20150708174225 dot GB18691 at vapier>
Mike Frysinger <vapier@gentoo.org> wrote on 07/08/2015 12:42:25 PM:
> From: Mike Frysinger <vapier@gentoo.org>
> To: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
> Cc: GLIBC Devel <libc-alpha@sourceware.org>, Steve
Munroe/Rochester/IBM@IBMUS
> Date: 07/08/2015 12:42 PM
> Subject: Re: [PATCH] powerpc: New feature - HWCAP/HWCAP2 bits in the TCB
>
> On 08 Jul 2015 10:55, Carlos Eduardo Seo wrote:
> > tcb-offsets.h is generated from tcb-offsets.sym during the glibc
> build and isnât installed. Thatâs why the offsets are duplicated in
> ppc.h, which is a public header.
>
> then perhaps tcb-offsets.h or something like it should be installed
alongside
> the ppc.h header ?
I fear that what you propose would just ignite another endless debate about
the wisdom of exposing the TCB and struct pthreads to users.
The current ./sysdeps/powerpc/nptl/tcb-offsets.sym includes offsets for
header.multiple_threads, header.private_futex, and pointer_guard which I
suspect the community feels (and I agree) are private to GLIBC
implementation.
So for now I would like to just provide nice #defines for the two fields
evolved and then once the community considers and agrees to a general
policy we can work on a more general solution.
I would like to catch the 2.22 train before it leaves.
Ok?
Steven J. Munroe
Linux on Power Toolchain Architect
IBM Corporation, Linux Technology Center