Commit 4b72375d authored by Russell King's avatar Russell King

[ARM] Fix atomic bitops earlyclobber

atomic_dec_and_test and atomic_add_negative didn't mark their
temporary variables as early-clobber.  Fix this.
parent e66bbef5
......@@ -88,7 +88,7 @@ static inline int atomic_dec_and_test(atomic_t *v)
" strex %1, %0, [%2]\n"
" teq %1, #0\n"
" bne 1b"
: "=&r" (result), "=r" (tmp)
: "=&r" (result), "=&r" (tmp)
: "r" (&v->counter)
: "cc");
......@@ -106,7 +106,7 @@ static inline int atomic_add_negative(int i, atomic_t *v)
" strex %1, %0, [%2]\n"
" teq %1, #0\n"
" bne 1b"
: "=&r" (result), "=r" (tmp)
: "=&r" (result), "=&r" (tmp)
: "r" (&v->counter), "Ir" (i)
: "cc");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment