[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix push/pop usage in tools/ioemu for x86/64.
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID c89d62e7015a25a48225daa929616a5ed44205b4 # Parent 4088dd0856a9cbc7ef050d7272e81666b7dfbcc7 Fix push/pop usage in tools/ioemu for x86/64. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r 4088dd0856a9 -r c89d62e7015a tools/ioemu/hw/vga.c --- a/tools/ioemu/hw/vga.c Mon Apr 10 16:16:25 2006 +++ b/tools/ioemu/hw/vga.c Mon Apr 10 16:25:42 2006 @@ -1369,10 +1369,16 @@ { unsigned int eax, edx; - __asm__("pushl %%ebx; cpuid; popl %%ebx" +#ifdef __x86_64__ +#define __bx "rbx" +#else +#define __bx "ebx" +#endif + __asm__("push %%"__bx"; cpuid; pop %%"__bx : "=a" (eax), "=d" (edx) : "0" (op) : "cx"); +#undef __ebx return edx; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |