函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\include\asm\processor.h Create Date:2022-07-27 06:39:09
首页 Copyright©Brick

199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#else
static inline int have_cpuid_p(void)
{
    return 1;
}
#endif
static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
                unsigned int *ecx, unsigned int *edx)
{
    /* ecx is often an input as well as an output. */
    asm volatile("cpuid"
        : "=a" (*eax),
          "=b" (*ebx),
          "=c" (*ecx),
          "=d" (*edx)
        : "0" (*eax), "2" (*ecx)
        : "memory");
}