lkml.org 
[lkml]   [2024]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch V6 01/19] x86/cpu: Provide cpuid_read() et al.
Date
On Tue, Feb 13 2024 at 22:36, Borislav Petkov wrote:

> On Tue, Feb 13, 2024 at 10:04:00PM +0100, Thomas Gleixner wrote:
>> +static inline void __cpuid_read(unsigned int leaf, unsigned int subleaf, u32 *regs)
>> +{
>> + regs[CPUID_EAX] = leaf;
>> + regs[CPUID_ECX] = subleaf;
>> + __cpuid(regs, regs + 1, regs + 2, regs + 3);
>
> Yeah,
>
> __cpuid(regs, regs + CPUID_EBX, regs + CPUID_ECX, regs + CPUID_EDX);
>
> explains what those numbers are.

Oops. Sorry, I missed that part of your previous reply and just
responded to the u32 *regs part. I'll send an update tomorrow.

Thanks,

tglx

\
 
 \ /
  Last update: 2024-05-27 15:01    [W:1.305 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site