This fixes a compile issue on i386 plaforms with the PIC compiler flag set
This commit is contained in:
parent
a9c83b5e71
commit
11fde73be1
|
@ -200,11 +200,20 @@ void ssedetect() {
|
||||||
uint32_t r_edx, r_ecx;
|
uint32_t r_edx, r_ecx;
|
||||||
|
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
|
#if defined(__i386__)
|
||||||
|
"pushl %%ebx;\n\t"
|
||||||
|
#endif
|
||||||
"mov $0x1,%%eax\n\t"
|
"mov $0x1,%%eax\n\t"
|
||||||
"cpuid\n\t"
|
"cpuid\n\t"
|
||||||
|
#if defined(__i386__)
|
||||||
|
"popl %%ebx;\n\t"
|
||||||
|
#endif
|
||||||
: "=d" (r_edx), "=c" (r_ecx)
|
: "=d" (r_edx), "=c" (r_ecx)
|
||||||
:
|
:
|
||||||
: "%eax", "%ebx"
|
: "%eax"
|
||||||
|
#if !defined(__i386__)
|
||||||
|
, "%ebx"
|
||||||
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
if (r_ecx & 0x00000200) {
|
if (r_ecx & 0x00000200) {
|
||||||
|
|
Loading…
Reference in New Issue