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 */
|
/* Start restoring context */
|
||||||
_restore:
|
_restore:
|
||||||
#ifdef RTEMS_SMP
|
#ifdef ARM_MULTILIB_HAS_LOAD_STORE_EXCLUSIVE
|
||||||
clrex
|
clrex
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -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__)
|
||||||
|
|||||||
Reference in New Issue
Block a user