From 2bf937e6bbe3137cd97596e8f1f26ed45415eb4b Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 1 Oct 2010 11:29:48 -0700 Subject: [PATCH] Use DMB ST for store fence. Change-Id: Ic713f30fcec0f2d2eb486c549917575ff0afa82f --- include/cutils/atomic-arm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/cutils/atomic-arm.h b/include/cutils/atomic-arm.h index 5e27d038a..004cc0cea 100644 --- a/include/cutils/atomic-arm.h +++ b/include/cutils/atomic-arm.h @@ -41,8 +41,7 @@ extern inline void android_memory_barrier(void) } extern inline void android_memory_store_barrier(void) { - /* TODO: use "dmb st" once the toolchain understands it */ - __asm__ __volatile__ ("dmb" : : : "memory"); + __asm__ __volatile__ ("dmb st" : : : "memory"); } #elif defined(__ARM_HAVE_LDREX_STREX) extern inline void android_memory_barrier(void)