blob: 49ab0d803ebfc69dbe401b3e2d40000677aa6624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- x86/ix86/ix86_cpudetect.c.orig 2005-08-07 03:43:45.000000000 -0400
+++ x86/ix86/ix86_cpudetect.c 2005-08-07 03:44:23.000000000 -0400
@@ -94,16 +94,19 @@
__asm__ __volatile__ (
#ifdef __x86_64__
+#define AX "%%rax"
"sub $0x18, %%rsp\n"
+#else
+#define AX "%%eax"
#endif
"pushf\n"
- "pop %%eax\n"
+ "pop "AX"\n"
"mov %%eax, %%edx\n"
"xor $0x200000, %%eax\n"
- "push %%eax\n"
+ "push "AX"\n"
"popf\n"
"pushf\n"
- "pop %%eax\n"
+ "pop "AX"\n"
"xor %%edx, %%eax\n"
"mov %%eax, %0\n"
#ifdef __x86_64__
|