[rtems commit] arm: Replace __sync_synchronize() implementation

Sebastian Huber sebh at rtems.org
Tue Sep 1 08:00:28 UTC 2015


Module:    rtems
Branch:    4.11
Commit:    6d734bae46b82a07195bbb1006a842a3a4b71703
Changeset: http://git.rtems.org/rtems/commit/?id=6d734bae46b82a07195bbb1006a842a3a4b71703

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep  1 09:47:12 2015 +0200

arm: Replace __sync_synchronize() implementation

---

 cpukit/score/cpu/arm/armv4-sync-synchronize.c | 27 +++++++++++++++++++--------
 1 file 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 6fcac05..7e4c91e 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 at 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();
+}




More information about the vc mailing list