aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-23 16:53:53 +0800
committerpav <pav@FreeBSD.org>2005-05-23 16:53:53 +0800
commit703c14f93c050dec799acd086672d15a9df30693 (patch)
tree87713eacfedc850f59af53c17cf1f9d613c9c14b /multimedia
parente1885f491ee03aef0eb6ae5c6fc9f55cba166dbf (diff)
downloadfreebsd-ports-gnome-703c14f93c050dec799acd086672d15a9df30693.tar.gz
freebsd-ports-gnome-703c14f93c050dec799acd086672d15a9df30693.tar.zst
freebsd-ports-gnome-703c14f93c050dec799acd086672d15a9df30693.zip
- Fix CPU features detection for amd64 platform
Submitted by: Michiel Boland <michiel@boland.org> Approved by: maintainer
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mplayer/files/patch-TOOLS-cpuinfo.c19
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;
+ }
+