summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-13 23:37:37 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-13 23:37:37 +0000
commit13d8b35f90eb4ec4ccceee3fd27ef5fcc8b8ae9e (patch)
treeaacbfd8a6cb582527137a2dd88780444829022e5 /sys-apps/x86info
parentAdded to ~ppc-macos. (Manifest recommit) (diff)
downloadgentoo-2-13d8b35f90eb4ec4ccceee3fd27ef5fcc8b8ae9e.tar.gz
gentoo-2-13d8b35f90eb4ec4ccceee3fd27ef5fcc8b8ae9e.tar.bz2
gentoo-2-13d8b35f90eb4ec4ccceee3fd27ef5fcc8b8ae9e.zip
pic patch
Diffstat (limited to 'sys-apps/x86info')
-rw-r--r--sys-apps/x86info/files/1.12b-pic.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/x86info/files/1.12b-pic.patch b/sys-apps/x86info/files/1.12b-pic.patch
new file mode 100644
index 000000000000..2fab551ba426
--- /dev/null
+++ b/sys-apps/x86info/files/1.12b-pic.patch
@@ -0,0 +1,14 @@
+--- bench/benchmarks.c.orig 2004-10-13 19:20:11.348776048 -0400
++++ bench/benchmarks.c 2004-10-13 19:22:16.880692296 -0400
+@@ -14,7 +14,10 @@
+ return;
+
+ TIME(asm volatile("int $0x80" :"=a" (ret) :"0" (__NR_getppid)), "int 0x80");
+- TIME(asm volatile("cpuid": : :"ax", "dx", "cx", "bx"), "cpuid");
++ TIME(asm volatile("movl %%edi,%%ebx\n"
++ "cpuid\n"
++ "movl %%ebx,%%edi\n"
++ : : :"%eax", "%edx", "%ecx", "%edi"), "cpuid");
+
+ TIME(asm volatile("addl $1,0(%esp)"), "addl");
+ TIME(asm volatile("lock ; addl $1,0(%esp)"), "locked add");