Ref #574: Bugfix for armv6 memory barrier

This commit is contained in:
Werner Saar 2015-05-19 10:43:12 +02:00
parent 7fb718a7d8
commit ea4df0aad3
1 changed files with 9 additions and 0 deletions

View File

@ -71,9 +71,18 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef COMMON_ARM
#define COMMON_ARM
#if defined(ARMV5) || defined(ARMV6)
#define MB
#define WMB
#else
#define MB __asm__ __volatile__ ("dmb ish" : : : "memory")
#define WMB __asm__ __volatile__ ("dmb ishst" : : : "memory")
#endif
#define INLINE inline
#define RETURN_BY_COMPLEX