summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-01 09:47:12 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-09-01 09:59:26 +0200
commit95b43d0ddeeedbb6ba9c0b876778f2ced11381eb (patch)
tree6195f7fa656eef82c60f237e0b6cc1d6e6660d97
parentarm: Use compiler memory barrier by default (diff)
downloadrtems-95b43d0ddeeedbb6ba9c0b876778f2ced11381eb.tar.bz2
arm: Replace __sync_synchronize() implementation
-rw-r--r--cpukit/score/cpu/arm/armv4-sync-synchronize.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/cpukit/score/cpu/arm/armv4-sync-synchronize.c b/cpukit/score/cpu/arm/armv4-sync-synchronize.c
index 6fcac05684..7e4c91ee1c 100644
--- a/cpukit/score/cpu/arm/armv4-sync-synchronize.c
+++ b/cpukit/score/cpu/arm/armv4-sync-synchronize.c
@@ -1,9 +1,20 @@
-void
-__sync_synchronize (void)
+/*
+ * Copyright (c) 2015 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <rtems/score/cpu.h>
+
+void __sync_synchronize( void )
{
-#ifdef ARM_MULTILIB_HAS_BARRIER_INSTRUCTIONS
- asm volatile("dmb" : : : "memory");
-#else
- asm volatile("" : : : "memory");
-#endif
-} \ No newline at end of file
+ _ARM_Data_memory_barrier();
+}