arm: Clear reservations

Recent GCC versions use atomic operations based on load/store exclusive
in the C++ library.
This commit is contained in:
Sebastian Huber
2013-12-03 11:56:55 +01:00
parent 057c294afd
commit b4e83061e3
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ DEFINE_FUNCTION_ARM(_CPU_Context_switch)
/* Start restoring context */ /* Start restoring context */
_restore: _restore:
#ifdef RTEMS_SMP #ifdef ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
clrex clrex
#endif #endif

View File

@@ -41,6 +41,7 @@ extern "C" {
|| defined(__ARM_ARCH_7R__) \ || defined(__ARM_ARCH_7R__) \
|| defined(__ARM_ARCH_7M__) || defined(__ARM_ARCH_7M__)
#define ARM_MULTILIB_HAS_WFI #define ARM_MULTILIB_HAS_WFI
#define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
#endif #endif
#if defined(__ARM_NEON__) #if defined(__ARM_NEON__)