Use DMB ST for store fence.

Change-Id: Ic713f30fcec0f2d2eb486c549917575ff0afa82f
This commit is contained in:
Andy McFadden 2010-10-01 11:29:48 -07:00
parent e3ba1801f0
commit 2bf937e6bb
1 changed files with 1 additions and 2 deletions

View File

@ -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)