WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86: minor adjustment to asm constraint i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: minor adjustment to asm constraint in get_page()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Jun 2008 14:10:19 -0700
Delivery-date: Fri, 13 Jun 2008 14:10:45 -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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213283839 -3600
# Node ID 7cf53a91c3a3c6ab863461c2ff4a90656a155602
# Parent  882eb6186c2dbc7f73280f3aca3600faad44fbf0
x86: minor adjustment to asm constraint in get_page()

While not wrong, avoiding the unnecessary output allows the compiler a
little more freedom.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 882eb6186c2d -r 7cf53a91c3a3 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Thu Jun 12 16:11:39 2008 +0100
+++ b/xen/arch/x86/mm.c Thu Jun 12 16:17:19 2008 +0100
@@ -1702,8 +1702,8 @@ int get_page(struct page_info *page, str
             return 0;
         }
         asm volatile (
-            LOCK_PREFIX "cmpxchg8b %3"
-            : "=d" (nd), "=a" (y), "=c" (d),
+            LOCK_PREFIX "cmpxchg8b %2"
+            : "=d" (nd), "=a" (y),
             "=m" (*(volatile u64 *)(&page->count_info))
             : "0" (d), "1" (x), "c" (d), "b" (nx) );
     }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: minor adjustment to asm constraint in get_page(), Xen patchbot-unstable <=