ARMv8: make master CPU checking logic more clear
PATCH 1/1 ARMv8: make master CPU checking logic more clear
From: zijun_hu <[email protected]>
macro branch_if_master checks master CPU via (Aff3 & (Aff2:Aff1:Aff0)) it is simple but a little obscure.
fix by checking Affx fields within MPIDR_EL1 directly.
Signed-off-by zijun_hu <[email protected]>
--- arch/arm/include/asm/macro.h | 1 + 1 file changed, 1 insertion(+)
arch/arm/include/asm/macro.h +1 -0
@@ -131,6 +131,7 @@ lr .req x30/* NOTE: MPIDR handling will be erroneous on multi-cluster machines */ mrs \xreg1, mpidr_el1 lsr \xreg2, \xreg1, #32 + lsl \xreg2, \xreg2, #32 lsl \xreg1, \xreg1, #40 lsr \xreg1, \xreg1, #40 orr \xreg1, \xreg1, \xreg2
Signature · 1 line
1.9.1
PATCH 1/1 ARMv8: make master CPU checking logic more clear
Quoted 8 lines · zijun_hu
From:
zijun_hu<[email protected]>macro
branch_if_masterchecks master CPU via (Aff3 & (Aff2:Aff1:Aff0)) it is simple but a little obscure.fix by checking Affx fields within
MPIDR_EL1directly.Signed-off-by zijun_hu <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171009/61cf69d7/attachment.sig>