Commit 6e565ab4 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3642 from ilya-lavrenov:linux_x86

parents f1fb4744 dcb0c68e
...@@ -293,14 +293,13 @@ struct HWFeatures ...@@ -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"
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment