Branch: Tag:

2015-09-28

2015-09-28 14:38:27 by Martin Nilsson <nilsson@fastmail.com>

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