Skip to contentSkip to conversation

x86: minor adjustment to asm constraint in get_page()

PATCH New Jan Beulich 1 participant 1 message Jun 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: minor adjustment to asm constraint in get_page()

While not wrong, avoiding the unnecessary output allows the compiler a little more freedom.

xen/arch/x86/mm.c +2 -2
Index: 2008-06-12/xen/arch/x86/mm.c
===================================================================
@@ -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) );
     }