Home
last modified time | relevance | path

Searched hist:"39 b21d19a01bc8eac3ab5f21a3cf96cd5e9a4f42" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/plat/arm/board/fvp/aarch64/
H A Dfvp_helpers.S39b21d19a01bc8eac3ab5f21a3cf96cd5e9a4f42 Thu Mar 15 07:32:41 UTC 2018 Wang Feng <feng_feng.wang@spreadtrum.com> FVP: change the method for translating MPIDR values to a linear indices

x3 will be assigned by the folloing instructions.
So the first instruction is not needed any more.

old method:
(ClusterId * FVP_MAX_CPUS_PER_CLUSTER)
+ (CPUId * FVP_MAX_PE_PER_CPU)
+ ThreadId

it should be
(ClusterId * FVP_MAX_CPUS_PER_CLUSTER) * FVP_MAX_PE_PER_CPU
+ (CPUId * FVP_MAX_PE_PER_CPU)
+ ThreadId

which can be simplified as:
(ClusterId * FVP_MAX_CPUS_PER_CLUSTER + CPUId) * FVP_MAX_PE_PER_CPU + ThreadId

Signed-off-by: Wang Feng <feng_feng.wang@spreadtrum.com>