Skip to content

Commit 8cc344e

Browse files
fabiobaltierimmahadevan108
authored andcommitted
CMSIS: AArch64: avoid redefining MPIDR_AFFLVL_MASK
There's already a definition of this register in the main repo code base, add a guard around it so it does not get redefined, fixes a build warning. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 596ea20 commit 8cc344e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mcux/mcux-sdk/CMSIS/Core_AArch64/Include/core_common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@
6969
#define GET_EL(_mode) (((_mode) >> MODE_EL_SHIFT) & MODE_EL_MASK)
7070

7171
/* MPIDR */
72+
#ifndef MPIDR_AFFLVL_MASK
7273
#define MPIDR_AFFLVL_MASK (0xfful)
74+
#endif
7375
#define MPIDR_AFF0_SHIFT (0)
7476
#define MPIDR_AFF1_SHIFT (8)
7577
#define MPIDR_AFF2_SHIFT (16)

0 commit comments

Comments
 (0)