[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] 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>

Index: 2008-06-12/xen/arch/x86/mm.c
===================================================================
--- 2008-06-12.orig/xen/arch/x86/mm.c   2008-06-12 09:08:36.000000000 +0200
+++ 2008-06-12/xen/arch/x86/mm.c        2008-06-12 09:08:42.000000000 +0200
@@ -1706,8 +1706,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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.