Fix clang build failure for cputest

Signed-off-by: Ray-V <ray-v@inbox.lv>
(cherry picked from commit 02323df78a)
r14.1.x
Ray-V 1 year ago committed by Slávek Banko
parent b7e134e27e
commit dc9b57aa09
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save