forked from Imagelibrary/rtems
arm: Clear reservations
Recent GCC versions use atomic operations based on load/store exclusive in the C++ library.
This commit is contained in:
@@ -64,7 +64,7 @@ DEFINE_FUNCTION_ARM(_CPU_Context_switch)
|
||||
|
||||
/* Start restoring context */
|
||||
_restore:
|
||||
#ifdef RTEMS_SMP
|
||||
#ifdef ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
|
||||
clrex
|
||||
#endif
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ extern "C" {
|
||||
|| defined(__ARM_ARCH_7R__) \
|
||||
|| defined(__ARM_ARCH_7M__)
|
||||
#define ARM_MULTILIB_HAS_WFI
|
||||
#define ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_NEON__)
|
||||
|
||||
Reference in New Issue
Block a user