diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-23 08:53:53 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-23 08:53:53 +0000 |
commit | 2668ee90d74eaf1bed8ef56abded536f51d0aee7 (patch) | |
tree | b7ae5d73f602f820bf2d1d8b0cf94b40985c5896 | |
parent | Use MAKE_ARGS instead of patch to makefile (diff) |
- Fix CPU features detection for amd64 platform
Submitted by: Michiel Boland <michiel@boland.org>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=135933
-rw-r--r-- | multimedia/mplayer/files/patch-TOOLS-cpuinfo.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c b/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c new file mode 100644 index 000000000000..e87e321115af --- /dev/null +++ b/multimedia/mplayer/files/patch-TOOLS-cpuinfo.c @@ -0,0 +1,19 @@ +--- TOOLS/cpuinfo.c.orig Mon Oct 11 21:26:13 2004 ++++ TOOLS/cpuinfo.c Sun May 22 20:57:11 2005 +@@ -40,13 +40,9 @@ + cpuid(int func) { + cpuid_regs_t regs; + #define CPUID ".byte 0x0f, 0xa2; " +- asm("push %%ebx; " +- "movl %4,%%eax; " CPUID +- "movl %%eax,%0; movl %%ebx,%1; movl %%ecx,%2; movl %%edx,%3; " +- "pop %%ebx" +- : "=m" (regs.eax), "=m" (regs.ebx), "=m" (regs.ecx), "=m" (regs.edx) +- : "g" (func) +- : "%eax", "%ecx", "%edx"); ++ asm(CPUID ++ : "=a" (regs.eax), "=b" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx) ++ : "0" (func)); + return regs; + } + |