mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-21 06:01:39 +00:00
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: zijun_hu <zijun_hu@htc.com>
This commit is contained in:
parent
b813908354
commit
34f9a92583
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue