pic patch
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Oct 2004 23:37:37 +0000 (23:37 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 Oct 2004 23:37:37 +0000 (23:37 +0000)
sys-apps/x86info/Manifest
sys-apps/x86info/files/1.12b-pic.patch [new file with mode: 0644]

index cfa6fec18f3c2e0534642a55130ef71a37786337..20c15befcee7f6c4adcb52acec726958e3a2e469 100644 (file)
@@ -8,10 +8,11 @@ MD5 d5090cdf4c4046b43fc19a32fe832d16 x86info-1.12b.ebuild 1220
 MD5 14514d85680a44ebe1a0625f76262b3a files/digest-x86info-1.11 60
 MD5 1759a81bcf65ea2266520c18b934df09 files/digest-x86info-1.12b 61
 MD5 e622e47087f8556df73aae8e3c4dd896 files/x86info-modules.conf-rc 330
+MD5 8a96e3de09ecff97079a248d217c407f files/1.12b-pic.patch 594
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.9.10 (GNU/Linux)
 
-iD8DBQFBbbwUHTu7gpaalycRAg82AKCCA/LIJJD735wFeFMUoBJ4FKoehQCeK+W0
-5FDuYHjh6G6pMQhLZJrqi7M=
-=dNfC
+iD8DBQFBbbxPHTu7gpaalycRAqIyAKCoJNuuT7nV4mlRYrViLOfmlwcT8gCgjzi/
+SdkfGYxLSuTxwzpMlD96YkQ=
+=pbvb
 -----END PGP SIGNATURE-----
diff --git a/sys-apps/x86info/files/1.12b-pic.patch b/sys-apps/x86info/files/1.12b-pic.patch
new file mode 100644 (file)
index 0000000..2fab551
--- /dev/null
@@ -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");