This is the mail archive of the libc-alpha@sourceware.org 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]

RE: [PATCH] Support HWCAPs for MIPS


Joseph S. Myers <joseph@codesourcery.com> writes
> On Tue, 14 Oct 2014, Matthew Fortune wrote:
> 
> > +#define HWCAP_MIPS_R6	0x00000001
> > +#define HWCAP_MIPS_MSA	0x00000002
> 
> HWCAP values are assigned by the kernel; they are not ELF-level interfaces
> but interfaces between the kernel and userspace; we normally add new
> values once there's been a kernel.org release with those values in, as
> part of the routine review of new kernel releases for any new interfaces
> of relevance to glibc.  In this case, I don't see these values in

For architecture independent interfaces/extensions I completely agree as it
is not possible to predict what values will be assigned. In this case we
have a spec which the kernel and glibc can follow for MIPS. I'm not sure I
see the need to wait for the kernel changes to hit the main kernel repo.

I.e. if we had agreement on a spec between an architecture maintainer for
the kernel and glibc then that would seem sufficient.

> Being Linux-specific, I think the right location for these files is
> sysdeps/unix/sysv/linux/mips/ similar to ARM (although other architectures
> putting such OS-specific definitions in OS-independent files doesn't cause
> practical problems in the absence of other-OS ports for those
> architectures).

OK.
 
> If you want to get other patches depending on HWCAP tests in some way into
> glibc before the HWCAP values are allocated in the kernel, I advise
> setting up the glibc code to hardcode whatever it would do with an old
> kernel that never sets a nonzero HWCAP, and then adding support for
> handling new kernel features later when the values are allocated.

Given the current approach is to wait for changes to hit the kernel I'll
skip this for now and hard-code as suggested.

Thanks,
Matthew


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