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: Use __get_cpu_features () in HAS_CPUID_FLAG


On 12/12/2012 02:59 PM, H.J. Lu wrote:
>     are called only within __init_cpu_features, where we can't
>     call __get_cpu_features without infinite recursion.  */
>  # define HAS_CPUID_FLAG(idx, reg, bit) \
> -  (((&__cpu_features)->cpuid[idx].reg & (bit)) != 0)
> +  ((__get_cpu_features ()->cpuid[idx].reg & (bit)) != 0)

Read the comment above, the important bit of which can even be read
within this context.


r~


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