From 82619826dc68eec8e1ba5e99a838422940cfba4d Mon Sep 17 00:00:00 2001 From: gpoirier Date: Mon, 15 May 2006 15:10:23 +0000 Subject: fix build on macintel, patch by Zuxy Meng git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18518 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/cpuinfo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c index 7936a5518d..56ebe2087e 100644 --- a/TOOLS/cpuinfo.c +++ b/TOOLS/cpuinfo.c @@ -43,8 +43,10 @@ static cpuid_regs_t 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; } -- cgit v1.2.3