Skip to content

Commit 78ea129

Browse files
atmfjganchao
authored andcommitted
arch/arm: fix the bug of armv8-r macro GET_MPIDR
should be core not cpu Signed-off-by: fanjiangang <fanjiangang@lixiang.com> Signed-off-by: chao an <anchao@lixiang.com>
1 parent ae18982 commit 78ea129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/src/common/arm_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ extern void arm_fullcontextrestore(uint32_t *restoreregs);
205205
({ \
206206
uint64_t __mpidr = GET_MPIDR(); \
207207
__mpidr &= ~(MPIDR_AFFLVL_MASK << MPIDR_AFF ## aff_level ## _SHIFT); \
208-
__mpidr |= (cpu << MPIDR_AFF ## aff_level ## _SHIFT); \
208+
__mpidr |= (core << MPIDR_AFF ## aff_level ## _SHIFT); \
209209
__mpidr &= MPIDR_ID_MASK; \
210210
__mpidr; \
211211
})

0 commit comments

Comments
 (0)