Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL12
>
MPlayer
> MPlayer-amd64-detection.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File MPlayer-amd64-detection.patch of Package MPlayer
--- cpuinfo.c.orig 2010-08-06 00:16:04.000000000 +0200 +++ cpuinfo.c 2010-08-06 00:17:31.000000000 +0200 @@ -57,18 +57,8 @@ cpuid(int func) { cpuid_regs_t regs; #define CPUID ".byte 0x0f, 0xa2; " -#ifdef __x86_64__ - __asm__("mov %%rbx, %%rsi\n\t" -#else - __asm__("mov %%ebx, %%esi\n\t" -#endif - CPUID"\n\t" -#ifdef __x86_64__ - "xchg %%rsi, %%rbx\n\t" -#else - "xchg %%esi, %%ebx\n\t" -#endif - : "=a" (regs.eax), "=S" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx) + asm(CPUID + : "=a" (regs.eax), "=b" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx) : "0" (func)); return regs; }