summaryrefslogtreecommitdiffstats
path: root/cpukit
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 10:00:14 +0200
commit6d734bae46b82a07195bbb1006a842a3a4b71703 (patch)
treec555d3442199ae94bbef399a6361a54c18b0c651 /cpukit
parentarm: Use compiler memory barrier by default (diff)
downloadrtems-6d734bae46b82a07195bbb1006a842a3a4b71703.tar.bz2
arm: Replace __sync_synchronize() implementation
Diffstat (limited to 'cpukit')
-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();
+}