Skip to content

Commit d20384a

Browse files
authored
Merge pull request #14456 from ladislas/ladislas/feature/fix-mbed_atomic-mac-m1
Fix define MBED_EXCLUSIVE_ACCESS for Apple M1 (__aarch64__) computers
2 parents 5ac508b + f80ed5e commit d20384a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/include/platform/mbed_atomic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ typedef enum mbed_memory_order {
8888
#endif
8989
#elif (__ARM_ARCH_6M__ == 1U)
9090
#define MBED_EXCLUSIVE_ACCESS 0U
91+
#elif defined __aarch64__ // Apple M1 Mac
92+
#define MBED_EXCLUSIVE_ACCESS 0U
9193
#else
9294
#error "Unknown ARM architecture for exclusive access"
9395
#endif // __ARM_ARCH_xxx

0 commit comments

Comments
 (0)