Skip to content

Commit

Permalink
arch/arm: fix the bug of armv8-r macro GET_MPIDR
Browse files Browse the repository at this point in the history
should be core not cpu

Signed-off-by: fanjiangang <fanjiangang@lixiang.com>
Signed-off-by: chao an <anchao@lixiang.com>
  • Loading branch information
atmfjg authored and anchao committed Oct 12, 2024
1 parent 2747d3a commit 50b175f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/common/arm_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ extern void arm_fullcontextrestore(uint32_t *restoreregs);
({ \
uint64_t __mpidr = GET_MPIDR(); \
__mpidr &= ~(MPIDR_AFFLVL_MASK << MPIDR_AFF ## aff_level ## _SHIFT); \
__mpidr |= (cpu << MPIDR_AFF ## aff_level ## _SHIFT); \
__mpidr |= (core << MPIDR_AFF ## aff_level ## _SHIFT); \
__mpidr &= MPIDR_ID_MASK; \
__mpidr; \
})
Expand Down

0 comments on commit 50b175f

Please sign in to comment.