On Mon, Oct 12, 2026 at 10:03 PM Simon Glass <[email protected]> wrote: > > On 2026-10-11T07:05:58, Bin Meng <[email protected]> wrote: > > x86: cpu: Implement cpuid() through cpuid_ext() > > > > cpuid() duplicates the old EBX save and restore sequence and leaves > > the ECX input unspecified. This is unsafe in long mode and makes > > queries of indexed CPUID leaves depend on the incoming ECX value. > > > > Call cpuid_ext() with subleaf zero to reuse native_cpuid() and provide > > a deterministic default for indexed leaves. Keep the existing interface > > so callers do not need to manage individual register outputs. > > > > Signed-off-by: Bin Meng <[email protected]> > > > > arch/x86/include/asm/cpu.h | 28 ++++++++-------------------- > > 1 file changed, 8 insertions(+), 20 deletions(-) > > Reviewed-by: Simon Glass <[email protected]>
applied to u-boot-x86, thanks!
