fix for -m32

This commit is contained in:
Ilya Lavrenov
2015-01-23 17:26:43 +03:00
parent 3f1fb281be
commit dcb0c68ed3

View File

@@ -293,14 +293,13 @@ struct HWFeatures
#else #else
asm volatile asm volatile
( (
"pushl %%eax\n\t" "pushl %%ebx\n\t"
"pushl %%edx\n\t"
"movl $7,%%eax\n\t" "movl $7,%%eax\n\t"
"movl $0,%%ecx\n\t" "movl $0,%%ecx\n\t"
"cpuid\n\t" "cpuid\n\t"
"popl %%edx\n\t" "movl %%ebx, %0\n\t"
"popl %%eax\n\t" "popl %%ebx\n\t"
: "=b"(cpuid_data[1]), "=c"(cpuid_data[2]) : "=r"(cpuid_data[1]), "=c"(cpuid_data[2])
: :
: "cc" : "cc"
); );