mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ArmPkg: ArmPsciMpServicesDxe: Fix MPIDR usage from CoreInfo
The `GET_MPIDR_AFFINITY_BITS` macro masks MT_BIT in ArmReadMpidr (), but `CoreInfo[Index].Mpidr` wasn't masked by the same macro which causes a mismatch even if it is the same MPIDR value. This change uses the same `GET_MPIDR_AFFINITY_BITS` macro for `CoreInfo[Index].Mpidr` to fix the core index searching logic. Signed-off-by: Kun Qin <kuqin@microsoft.com>
This commit is contained in:
parent
1fc19a0d52
commit
dfbb7de3c6
1 changed files with 1 additions and 1 deletions
|
|
@ -1333,7 +1333,7 @@ MpServicesInitialize (
|
|||
ASSERT (gApStacksBase != NULL);
|
||||
|
||||
for (Index = 0; Index < mCpuMpData.NumberOfProcessors; Index++) {
|
||||
if (GET_MPIDR_AFFINITY_BITS (ArmReadMpidr ()) == CoreInfo[Index].Mpidr) {
|
||||
if (GET_MPIDR_AFFINITY_BITS (ArmReadMpidr ()) == GET_MPIDR_AFFINITY_BITS (CoreInfo[Index].Mpidr)) {
|
||||
IsBsp = TRUE;
|
||||
} else {
|
||||
IsBsp = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue