fix insufficient synchronization in sh atomic asm
authorRich Felker <dalias@aerifal.cx>
Mon, 28 Jul 2014 01:13:37 +0000 (21:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 28 Jul 2014 01:13:37 +0000 (21:13 -0400)
commitc394763d350f92ff1dbfb79fcd7124da47bc7043
tree176336ccc95f27c7b1a9a8bead48fb48c839997c
parent2068b4e8911a3a49cded44b4568f6c943a8c98f8
fix insufficient synchronization in sh atomic asm

while other usage I've seen only has the synco instruction after the
atomic operation, I cannot find any documentation indicating that this
is correct. certainly all stores before the atomic need to have been
synchronized before the atomic operation takes place.
arch/sh/src/atomic.c