mirror of https://github.com/acidanthera/audk.git
DynamicTablesPkg: Fix referencing of CPC token
The CpcToken has been incorrectly referenced in the CreateTopologyFromGicC() and always points to the CPC token in the first GICC Info object. Therefore, fix this by correctly indexing into the GicCInfo object array. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
This commit is contained in:
parent
3ee23713e1
commit
09fd4e4172
|
@ -1298,7 +1298,7 @@ CreateTopologyFromGicC (
|
|||
|
||||
// If a CPC info is associated with the
|
||||
// GicCinfo, create an _CPC method returning them.
|
||||
if (GicCInfo->CpcToken != CM_NULL_TOKEN) {
|
||||
if (GicCInfo[Index].CpcToken != CM_NULL_TOKEN) {
|
||||
Status = CreateAmlCpcNode (Generator, CfgMgrProtocol, &GicCInfo[Index], CpuNode);
|
||||
if (EFI_ERROR (Status)) {
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
|
Loading…
Reference in New Issue