Project

General

Profile

Bug #534 ยป 03-util-cpu-fix-466.patch

Simon Moon, 08/24/2012 09:39 PM

View differences:

src/util-cpu.c
#else
__asm__ __volatile__ (
"xorl %%eax,%%eax\n\t"
"pushl %%ebx\n\t"
"cpuid\n\t"
::: "%eax", "%ebx", "%ecx", "%edx");
"popl %%ebx\n\t"
::: "%eax", "%ecx", "%edx");
#endif
uint32_t a, d;
__asm__ __volatile__ ("rdtsc" : "=a" (a), "=d" (d));
......
#else
__asm__ __volatile__ (
"xorl %%eax,%%eax\n\t"
"pushl %%ebx\n\t"
"cpuid\n\t"
::: "%eax", "%ebx", "%ecx", "%edx");
"popl %%ebx\n\t"
::: "%eax", "%ecx", "%edx");
#endif
#else /* #if defined(__GNU__) */
    (1-1/1)