commit | 4065646077d3a0b679ebd4e87398de5e008181f2 | [log] [tgz] |
---|---|---|
author | Mario Bălănică <mariobalanica02@gmail.com> | Fri Dec 01 05:43:53 2023 +0200 |
committer | Mario Bălănică <mariobalanica02@gmail.com> | Fri Mar 08 21:01:10 2024 +0200 |
tree | 5b5f29d98370c4891638c59a8137e1eb6eaff01d | |
parent | cb759fffdbbe6360bbfb4bdc7795fb7e29072942 [diff] |
fix(rpi): consider MT when calculating core index from MPIDR RPi 5 has newer Armv8.2 cores where the MT bit is set to indicate that the lowest affinity level represents a thread, but there is only one thread per core. To deal with this, simply right shift MPIDR by one affinity level to get the cluster and core IDs back into Aff1 and Aff0 as expected. Change-Id: I2bafba38f82fd9a6ef6f2fdf2c089b754279a6de Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>