From: "Jan Beulich" Subject: [PATCH] x86: minor adjustment to asm constraint in get_page() Date: Thu, 12 Jun 2008 15:38:10 +0100 Message-ID: <485150F2.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org While not wrong, avoiding the unnecessary output allows the compiler a little more freedom. Signed-off-by: Jan Beulich Index: 2008-06-12/xen/arch/x86/mm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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" - : "=3Dd" (nd), "=3Da" (y), "=3Dc" (d), + LOCK_PREFIX "cmpxchg8b %2" + : "=3Dd" (nd), "=3Da" (y), "=3Dm" (*(volatile u64 *)(&page->count_info)) : "0" (d), "1" (x), "c" (d), "b" (nx) ); }