Jan Beulich
2008-Jun-12 14:38 UTC
[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@novell.com>
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@lists.xensource.com
http://lists.xensource.com/xen-devel
