From f61465ef8b3a201c7c2f55fc77a58477e2953b7c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 12 Jun 2008 16:17:19 +0100 Subject: [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 --- xen/arch/x86/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 514d667715..6601f78ebd 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -1702,8 +1702,8 @@ int get_page(struct page_info *page, struct domain *domain) 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) ); } -- 2.30.2