This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC] Expanding the hwcap
On Wed, 2012-10-17 at 16:39 -0400, Mike Frysinger wrote:
> sure. my point was that we can keep a single hwcap in glibc itself and keep
> the hwcap.h macros the same. the kernel will maintain a single 64bit value
> internally, take care of splitting it into two (AT_HWCAP & AT_HWCAP2), and
> glibc will take care of merging it back into one thus it only needs one hwcap
> value accessible via GLRO.
I'm not sure I understand the situation entirely from the kernel
perspective, but I believe that the cpu_spec.cpu_user_features can't
exceed 32-bits on PowerPC32 and to maintain parity with PowerPC64 we
only use the low 32-bits there as well, hence the need for two fields in
the kernel as well.
Ryan