projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb718a
)
Ref #574: Bugfix for armv6 memory barrier
author
Werner Saar
<wernsaar@googlemail.com>
Tue, 19 May 2015 08:43:12 +0000
(10:43 +0200)
committer
Werner Saar
<wernsaar@googlemail.com>
Tue, 19 May 2015 08:43:12 +0000
(10:43 +0200)
common_arm.h
patch
|
blob
|
history
diff --git
a/common_arm.h
b/common_arm.h
index
eb4234b
..
4acbc70
100644
(file)
--- a/
common_arm.h
+++ b/
common_arm.h
@@
-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