This fixes a compile issue on i386 plaforms with the PIC compiler flag set

This commit is contained in:
Andrew Bauer 2014-03-15 11:38:10 -05:00
parent a9c83b5e71
commit 11fde73be1
1 changed files with 10 additions and 1 deletions

View File

@ -200,11 +200,20 @@ void ssedetect() {
uint32_t r_edx, r_ecx;
__asm__ __volatile__(
#if defined(__i386__)
"pushl %%ebx;\n\t"
#endif
"mov $0x1,%%eax\n\t"
"cpuid\n\t"
#if defined(__i386__)
"popl %%ebx;\n\t"
#endif
: "=d" (r_edx), "=c" (r_ecx)
:
: "%eax", "%ebx"
: "%eax"
#if !defined(__i386__)
, "%ebx"
#endif
);
if (r_ecx & 0x00000200) {