aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-arm/atomic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
index 75b802719723..5f827509e923 100644
--- a/include/asm-arm/atomic.h
+++ b/include/asm-arm/atomic.h
@@ -87,6 +87,7 @@ static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
87 do { 87 do {
88 __asm__ __volatile__("@ atomic_cmpxchg\n" 88 __asm__ __volatile__("@ atomic_cmpxchg\n"
89 "ldrex %1, [%2]\n" 89 "ldrex %1, [%2]\n"
90 "mov %0, #0\n"
90 "teq %1, %3\n" 91 "teq %1, %3\n"
91 "strexeq %0, %4, [%2]\n" 92 "strexeq %0, %4, [%2]\n"
92 : "=&r" (res), "=&r" (oldval) 93 : "=&r" (res), "=&r" (oldval)