From e99bac5ff9ca962888a674b5fbf6b712bff31131 Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 7 Dec 2006 02:14:13 +0100 Subject: [PATCH] --- yaml --- r: 43136 b: refs/heads/master c: 9dc452ba2d47f376987a99c0819833af0b46cc3f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-x86_64/atomic.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index cd8df7b37218..df29f3af8eb6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e4b522d7ef144fb2ad6a4cb23d9cb5ec154be8bc +refs/heads/master: 9dc452ba2d47f376987a99c0819833af0b46cc3f diff --git a/trunk/include/asm-x86_64/atomic.h b/trunk/include/asm-x86_64/atomic.h index 007e88d6d43f..626d3715fbb5 100644 --- a/trunk/include/asm-x86_64/atomic.h +++ b/trunk/include/asm-x86_64/atomic.h @@ -189,9 +189,9 @@ static __inline__ int atomic_add_return(int i, atomic_t *v) { int __i = i; __asm__ __volatile__( - LOCK_PREFIX "xaddl %0, %1;" - :"=r"(i) - :"m"(v->counter), "0"(i)); + LOCK_PREFIX "xaddl %0, %1" + :"+r" (i), "+m" (v->counter) + : : "memory"); return i + __i; }