V2: [PATCH] x86: Install <sys/platform/x86.h> [BZ #26124]
H.J. Lu
hjl.tools@gmail.com
Thu Jun 18 16:14:22 GMT 2020
On Thu, Jun 18, 2020 at 1:45 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu via Libc-alpha:
>
> > <sys/platform/x86.h> exports only:
> >
> > struct cpu_features
> > {
> > struct cpuid_registers cpuid[COMMON_CPUID_INDEX_MAX];
> > unsigned int feature[FEATURE_INDEX_MAX];
> > struct cpu_features_basic basic;
> > };
>
> The struct cpu_features ABI does not appear to be stable, as I wrote on
> the other thread:
>
> <https://sourceware.org/pipermail/libc-alpha/2020-June/115161.html>
>
Here is the updated patch to use
struct cpu_features
{
struct cpu_features_basic basic;
unsigned int usable[USABLE_FEATURE_INDEX_MAX];
struct cpuid_registers cpuid[COMMON_CPUID_INDEX_MAX];
};
This should be backward compatible for both .o and .so files.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Install-sys-platform-x86.h-BZ-26124.patch
Type: application/x-patch
Size: 23394 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200618/c6f7fca1/attachment-0001.bin>
More information about the Libc-alpha
mailing list