Fix clang build failure for cputest

Signed-off-by: Ray-V <ray-v@inbox.lv>
pull/15/head
Ray-V 1 year ago
parent 4aae9b72d7
commit 02323df78a

@ -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));

Loading…
Cancel
Save