[RFC] Expanding the hwcap

Ryan Arnold rsa@us.ibm.com
Thu Oct 18 04:43:00 GMT 2012


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



More information about the Libc-alpha mailing list