[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 09304a22b8d211dcc3cb8635b01107bf2fed6a9b # Parent fd526926e0d1c0671295aa7f4b952186c9345173 Fix push/pop usage in tools/ioemu for x86/64. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> diff -r fd526926e0d1 -r 09304a22b8d2 tools/ioemu/hw/vga.c --- a/tools/ioemu/hw/vga.c Mon Apr 10 16:17:07 2006 +++ b/tools/ioemu/hw/vga.c Mon Apr 10 16:27:07 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 __bx return edx; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |