[Rawstudio-commit] r2077 - trunk/src
Anders Brander
anders at brander.dk
Sun Oct 26 10:17:18 CET 2008
Author: abrander
Date: 2008-10-26 10:17:18 +0100 (Sun, 26 Oct 2008)
New Revision: 2077
Modified:
trunk/src/arch-x86.c
Log:
Fixed rs_detect_cpu_features() for x86_64.
Modified: trunk/src/arch-x86.c
===================================================================
--- trunk/src/arch-x86.c 2008-10-21 19:08:57 UTC (rev 2076)
+++ trunk/src/arch-x86.c 2008-10-26 09:17:18 UTC (rev 2077)
@@ -95,9 +95,9 @@
do { \
eax = edx = 0; \
asm ( \
- "pushl %%ebx\n\t"\
+ "push %%"REG_b"\n\t"\
"cpuid\n\t" \
- "popl %%ebx\n\t" \
+ "pop %%"REG_b"\n\t" \
: "=a" (eax), "=d" (edx) \
: "0" (cmd) \
); \
@@ -112,7 +112,7 @@
/* Test cpuid presence comparing eflags */
asm (
- "pushl %%"REG_b"\n\t"
+ "push %%"REG_b"\n\t"
"pushf\n\t"
"pop %%"REG_a"\n\t"
"mov %%"REG_a", %%"REG_b"\n\t"
@@ -125,7 +125,7 @@
"je notfound\n\t"
"mov $1, %0\n\t"
"notfound:\n\t"
- "popl %%"REG_b"\n\t"
+ "pop %%"REG_b"\n\t"
: "=r" (eax)
:
: REG_a
More information about the Rawstudio-commit
mailing list