Skip to content
Snippets Groups Projects
Commit 34f9a925 authored by zijun_hu's avatar zijun_hu Committed by Tom Rini
Browse files

ARMv8: make master CPU checking logic more clear


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: default avatarzijun_hu <zijun_hu@htc.com>
parent b8139083
No related branches found
No related tags found
No related merge requests found
...@@ -131,6 +131,7 @@ lr .req x30 ...@@ -131,6 +131,7 @@ lr .req x30
/* NOTE: MPIDR handling will be erroneous on multi-cluster machines */ /* NOTE: MPIDR handling will be erroneous on multi-cluster machines */
mrs \xreg1, mpidr_el1 mrs \xreg1, mpidr_el1
lsr \xreg2, \xreg1, #32 lsr \xreg2, \xreg1, #32
lsl \xreg2, \xreg2, #32
lsl \xreg1, \xreg1, #40 lsl \xreg1, \xreg1, #40
lsr \xreg1, \xreg1, #40 lsr \xreg1, \xreg1, #40
orr \xreg1, \xreg1, \xreg2 orr \xreg1, \xreg1, \xreg2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment