aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkOnce.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-24 14:25:22 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-24 14:25:22 +0000
commitc1cf5c00893871f5391aa335952097b9406651b3 (patch)
treee5882465cb54778416d843cf093f934aa3c2bcfa /src/core/SkOnce.h
parent0255a5d2fe37f5b5b4e7c4cdb2ec3ab18a53deaf (diff)
Borrow Android's ARMv6 memory barrier for SkOnce.
BUG=skia:1743 R=bungeman@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/34353009 git-svn-id: http://skia.googlecode.com/svn/trunk@11941 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkOnce.h')
-rw-r--r--src/core/SkOnce.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkOnce.h b/src/core/SkOnce.h
index ddef0d56c4..a469e22c86 100644
--- a/src/core/SkOnce.h
+++ b/src/core/SkOnce.h
@@ -64,7 +64,11 @@ inline static void compiler_barrier() {
inline static void full_barrier_on_arm() {
#ifdef SK_CPU_ARM
+#if SK_ARM_ARCH >= 7
asm volatile("dmb" : : : "memory");
+#else
+ asm volatile("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory");
+#endif
#endif
}