This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] Fix push/pop usage in tools/ioemu for x86/64.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix push/pop usage in tools/ioemu for x86/64.
From: Xen patchbot -3.0-testing <patchbot-3.0-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Apr 2006 17:42:17 +0000
Delivery-date: Mon, 10 Apr 2006 10:43:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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"
+#define __bx "ebx"
+    __asm__("push %%"__bx"; cpuid; pop %%"__bx
             : "=a" (eax), "=d" (edx)
             : "0" (op)
             : "cx");
+#undef __bx
     return edx;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>