Skip to content

Commit ea4df0a

Browse files
committed
Ref #574: Bugfix for armv6 memory barrier
1 parent 7fb718a commit ea4df0a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: common_arm.h

+9
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,18 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7171
#ifndef COMMON_ARM
7272
#define COMMON_ARM
7373

74+
#if defined(ARMV5) || defined(ARMV6)
75+
76+
#define MB
77+
#define WMB
78+
79+
#else
80+
7481
#define MB __asm__ __volatile__ ("dmb ish" : : : "memory")
7582
#define WMB __asm__ __volatile__ ("dmb ishst" : : : "memory")
7683

84+
#endif
85+
7786
#define INLINE inline
7887

7988
#define RETURN_BY_COMPLEX

0 commit comments

Comments
 (0)