Hi Edouard, Pi and all,
This patch made some problems on x86-64, I believe this patch should fix
it, can someone please review?
/abrander
Index: arch-x86.c
===================================================================
--- arch-x86.c (revision 2076)
+++ arch-x86.c (working copy)
@@ -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
_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev