summaryrefslogtreecommitdiff
path: root/sys-apps/x86info/files/1.21-pic.patch
blob: 7bf89240c2c0dbb97783dd893af8a1ddcdf89a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/bench/benchmarks.c
+++ b/bench/benchmarks.c
@@ -19,7 +19,10 @@
 #ifdef __linux__
 	TIME(asm volatile("int $0x80" :"=a" (tmp) :"0" (__NR_getppid)), "int 0x80");
 #endif
-	TIME(asm volatile("cpuid": : :"ax", "dx", "cx", "bx"), "cpuid");
+ 	TIME(asm volatile("movl %%ebx,%%edi\n"
+ 	                  "cpuid\n"
+ 	                  "movl %%edi,%%ebx\n"
+ 	                  : : :"%eax", "%edx", "%ecx", "%edi"), "cpuid");
 
 	TIME(asm volatile("addl $1,0(%esp)"), "addl");
 	TIME(asm volatile("lock ; addl $1,0(%esp)"), "locked add");