summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips64/atomic.h')
-rw-r--r--include/asm-mips64/atomic.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-mips64/atomic.h b/include/asm-mips64/atomic.h
index 0ed12d406..bef7dfef7 100644
--- a/include/asm-mips64/atomic.h
+++ b/include/asm-mips64/atomic.h
@@ -66,7 +66,8 @@ extern __inline__ int atomic_add_return(int i, atomic_t * v)
"addu\t%0,%1,%3\n\t"
".set\treorder"
: "=&r" (result), "=&r" (temp), "=m" (v->counter)
- : "Ir" (i), "m" (v->counter));
+ : "Ir" (i), "m" (v->counter)
+ : "memory");
return result;
}
@@ -84,7 +85,8 @@ extern __inline__ int atomic_sub_return(int i, atomic_t * v)
"subu\t%0,%1,%3\n\t"
".set\treorder"
: "=&r" (result), "=&r" (temp), "=m" (v->counter)
- : "Ir" (i), "m" (v->counter));
+ : "Ir" (i), "m" (v->counter)
+ : "memory");
return result;
}