mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
arm: Clear reservations
Recent GCC versions use atomic operations based on load/store exclusive in the C++ library.
This commit is contained in:
1 parent
057c294afd
commit
b4e83061e3
2 files changed
+2
-1
No files matched your search
@@ -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