Commit cf9eb565 by Richard Earnshaw Committed by Richard Earnshaw

linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier before the lock release.

	* arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
	before the lock release.

From-SVN: r154949
parent bcaf576b
2009-12-03 Richard Earnshaw <rearnsha@arm.com>
* arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
before the lock release.
2009-12-03 Michael Matz <matz@suse.de>
PR middle-end/38474
......@@ -266,8 +266,10 @@ SUBWORD_TEST_AND_SET (char, 1)
void HIDDEN \
__sync_lock_release_##WIDTH (TYPE *ptr) \
{ \
*ptr = 0; \
/* All writes before this point must be seen before we release \
the lock itself. */ \
__kernel_dmb (); \
*ptr = 0; \
}
SYNC_LOCK_RELEASE (int, 4)
......
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