2015-09-28
2015-09-28 14:38:27 by Martin Nilsson <nilsson@fastmail.com>
-
3e0681e15b7ddf0cd86328d5dedc2faead08f661
(9 lines)
(+5/-4)
[
Show
| Annotate
]
Branch: 8.0
Set x86_get_cpuid response order to eax,ebx,edx,ecx in all cases.
83: Inside #if SIZEOF_CHAR_P == 4
"popl %%ebx \n\t" /* restore the old %ebx */
: "=a"(cpuid_ptr[0]),
"=r"(cpuid_ptr[1]),
- "=c"(cpuid_ptr[2]),
- "=d"(cpuid_ptr[3])
+ "=d"(cpuid_ptr[2]),
+ "=c"(cpuid_ptr[3])
: "0"(oper)
: "cc");
#else
94:
"pop %%rbx \n\t" /* restore the old %rbx */
: "=a"(cpuid_ptr[0]),
"=r"(cpuid_ptr[1]),
- "=c"(cpuid_ptr[2]),
- "=d"(cpuid_ptr[3])
+ "=d"(cpuid_ptr[2]),
+ "=c"(cpuid_ptr[3])
: "0"(oper)
: "cc");
#endif