fix bug #609 - error: PIC register bx' clobbered in asm'

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vhanquez@kneesa.uk.xensource.com committed 2006-04-10 14:51:10 +00:00
1 parent 9a74026a08
commit cfca4d6941
1 file changed
+2 -2
+2 -2
View File
@@ -1369,10 +1369,10 @@ static inline unsigned int cpuid_edx(unsigned int op)
{
unsigned int eax, edx;
__asm__("cpuid"
__asm__("pushl %%ebx; cpuid; popl %%ebx"
: "=a" (eax), "=d" (edx)
: "0" (op)
: "bx", "cx");
: "cx");
return edx;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.