diff options
Diffstat (limited to 'sys-apps/x86info')
-rw-r--r-- | sys-apps/x86info/files/1.12b-pic.patch | 14 |
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"); |