RTS: fix xchg/cas fcns to invoke memory barrier on ARMv7 platform
authorKarel Gardas <karel.gardas@centrum.cz>
Sat, 9 Jul 2011 15:54:30 +0000 (17:54 +0200)
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>
Wed, 10 Aug 2011 12:03:41 +0000 (22:03 +1000)
commita9b455c4b6960d47d31e769052104a4a4fc26cf0
tree6783ad7c5ae85b0ea18a31759e1ead87914733ac
parentb0538fd43a8d813dff50dbdde493d099b753e0e8
RTS: fix xchg/cas fcns to invoke memory barrier on ARMv7 platform

This patch fixes RTS' xchg and cas functions. On ARMv7 it is recommended
to add memory barrier after using ldrex/strex for implementing atomic
lock or operation.
includes/stg/SMP.h