Merge pull request #14456 from ladislas/ladislas/feature/fix-mbed_atomic-mac-m1

Fix define MBED_EXCLUSIVE_ACCESS for Apple M1 (__aarch64__) computers
pull/14481/head
Anna Bridge 2021-03-26 14:57:10 +00:00 committed by GitHub
commit d20384aaf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ typedef enum mbed_memory_order {
#endif
#elif (__ARM_ARCH_6M__ == 1U)
#define MBED_EXCLUSIVE_ACCESS 0U
#elif defined __aarch64__ // Apple M1 Mac
#define MBED_EXCLUSIVE_ACCESS 0U
#else
#error "Unknown ARM architecture for exclusive access"
#endif // __ARM_ARCH_xxx