ia64/xen-unstable

changeset 17845:7cf53a91c3a3

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 12 16:17:19 2008 +0100 (2008-06-12)
parents 882eb6186c2d
children 4ac0898df538
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Jun 12 16:11:39 2008 +0100
     1.2 +++ b/xen/arch/x86/mm.c	Thu Jun 12 16:17:19 2008 +0100
     1.3 @@ -1702,8 +1702,8 @@ int get_page(struct page_info *page, str
     1.4              return 0;
     1.5          }
     1.6          asm volatile (
     1.7 -            LOCK_PREFIX "cmpxchg8b %3"
     1.8 -            : "=d" (nd), "=a" (y), "=c" (d),
     1.9 +            LOCK_PREFIX "cmpxchg8b %2"
    1.10 +            : "=d" (nd), "=a" (y),
    1.11              "=m" (*(volatile u64 *)(&page->count_info))
    1.12              : "0" (d), "1" (x), "c" (d), "b" (nx) );
    1.13      }