|
|
@ -21,9 +21,9 @@
|
|
|
|
/* ebx saving is necessary for PIC. gcc seems unable to see it alone */
|
|
|
|
/* ebx saving is necessary for PIC. gcc seems unable to see it alone */
|
|
|
|
#define cpuid(index,eax,ebx,ecx,edx)\
|
|
|
|
#define cpuid(index,eax,ebx,ecx,edx)\
|
|
|
|
__asm __volatile\
|
|
|
|
__asm __volatile\
|
|
|
|
("mov %%"REG_b", %%"REG_S"\n\t"\
|
|
|
|
("mov %%" REG_b ", %%" REG_S "\n\t"\
|
|
|
|
"cpuid\n\t"\
|
|
|
|
"cpuid\n\t"\
|
|
|
|
"xchg %%"REG_b", %%"REG_S\
|
|
|
|
"xchg %%" REG_b ", %%" REG_S\
|
|
|
|
: "=a" (eax), "=S" (ebx),\
|
|
|
|
: "=a" (eax), "=S" (ebx),\
|
|
|
|
"=c" (ecx), "=d" (edx)\
|
|
|
|
"=c" (ecx), "=d" (edx)\
|
|
|
|
: "0" (index));
|
|
|
|
: "0" (index));
|
|
|
|