Ticket #12177: cpuid.patch

File cpuid.patch, 641 bytes (added by john.p.harvey@…, 10 years ago)

patch for cpuid on 32 bit systems

  • mythtv/libs/libmythtv/mythframe.cpp

    diff --git a/mythtv/libs/libmythtv/mythframe.cpp b/mythtv/libs/libmythtv/mythframe.cpp
    index ee8e2e1..ce97f54 100644
    a b static int has_sse4 = -1; 
    4040inline void cpuid(int CPUInfo[4],int InfoType)
    4141{
    4242    __asm__ __volatile__ (
    43     "cpuid":
    44     "=a" (CPUInfo[0]),
    45     "=b" (CPUInfo[1]),
     43                          "pushl %%ebx \n"
     44                          "cpuid \n"
     45                          "movl %%ebx, %1\n"
     46                          "popl %%ebx\n"
     47                          :    "=a" (CPUInfo[0]),
     48    "=r" (CPUInfo[1]),
    4649    "=c" (CPUInfo[2]),
    4750    "=d" (CPUInfo[3]) :
    48     "a" (InfoType)
     51    "a"(InfoType)
     52
    4953    );
    5054}
    5155#endif