Commit 8284034a authored by Russell King's avatar Russell King

[ARM] Semaphore functions need to be memory barriers.

parent 8ef88d84
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
" blmi " #fail \ " blmi " #fail \
: \ : \
: "r" (ptr), "I" (1) \ : "r" (ptr), "I" (1) \
: "ip", "lr", "cc"); \ : "ip", "lr", "cc", "memory"); \
}) })
#define __down_op_ret(ptr,fail) \ #define __down_op_ret(ptr,fail) \
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
" mov %0, ip" \ " mov %0, ip" \
: "=&r" (ret) \ : "=&r" (ret) \
: "r" (ptr), "I" (1) \ : "r" (ptr), "I" (1) \
: "ip", "lr", "cc"); \ : "ip", "lr", "cc", "memory"); \
ret; \ ret; \
}) })
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
" blne " #fail \ " blne " #fail \
: \ : \
: "r" (ptr), "I" (RW_LOCK_BIAS) \ : "r" (ptr), "I" (RW_LOCK_BIAS) \
: "ip", "lr", "cc"); \ : "ip", "lr", "cc", "memory"); \
}) })
#define __up_op_write(ptr,wake) \ #define __up_op_write(ptr,wake) \
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
" blcs " #wake \ " blcs " #wake \
: \ : \
: "r" (ptr), "I" (RW_LOCK_BIAS) \ : "r" (ptr), "I" (RW_LOCK_BIAS) \
: "ip", "lr", "cc"); \ : "ip", "lr", "cc", "memory"); \
}) })
#define __down_op_read(ptr,fail) \ #define __down_op_read(ptr,fail) \
......
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