[MPlayer-cvslog] CVS: main/TOOLS cpuinfo.c,1.9,1.10

Guillaume Poirier CVS syncmail at mplayerhq.hu
Mon May 15 17:10:26 CEST 2006


CVS change done by Guillaume Poirier CVS

Update of /cvsroot/mplayer/main/TOOLS
In directory mail:/var2/tmp/cvs-serv25571/TOOLS

Modified Files:
	cpuinfo.c 
Log Message:
fix build on macintel, patch by Zuxy Meng


Index: cpuinfo.c
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/cpuinfo.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- cpuinfo.c	14 May 2006 20:24:47 -0000	1.9
+++ cpuinfo.c	15 May 2006 15:10:23 -0000	1.10
@@ -43,8 +43,10 @@
 cpuid(int func) {
   cpuid_regs_t regs;
 #define CPUID   ".byte 0x0f, 0xa2; "
-  asm( CPUID
-      : "=a" (regs.eax), "=b" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx)
+  asm("mov %%ebx, %%esi\n\t" 
+      CPUID"\n\t"
+      "xchg %%esi, %%ebx"
+      : "=a" (regs.eax), "=S" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx)
       : "0" (func));
   return regs;
 }




More information about the MPlayer-cvslog mailing list