DynamicPlatRepoLib maintains list of CmObjs and named as ArmObjList. However, to support other architectures, it is better to name this in a architecture neutral way.
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> Cc: Leif Lindholm <quic_llind...@quicinc.com> Cc: Pierre Gondois <pierre.gond...@arm.com> Cc: Sami Mujawar <sami.muja...@arm.com> Signed-off-by: Sunil V L <suni...@ventanamicro.com> --- .../DynamicPlatRepoLib/DynamicPlatRepoInternal.h | 4 ++-- .../Common/DynamicPlatRepoLib/DynamicPlatRepo.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoInternal.h b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoInternal.h index 2b09f2ad882d..cc0acfffecbb 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoInternal.h +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoInternal.h @@ -60,12 +60,12 @@ typedef struct DynamicPlatformRepositoryInfo { /// Link lists of CmObj from the ArmNameSpace /// that are added in the Transient state. - LIST_ENTRY ArmCmObjList[EArchObjMax]; + LIST_ENTRY ArchCmObjList[EArchObjMax]; /// Structure Members used in Finalized state. /// An array of CmObj Descriptors from the ArmNameSpace /// This array is populated when the Repo is finalized. - CM_OBJ_DESCRIPTOR ArmCmObjArray[EArchObjMax]; + CM_OBJ_DESCRIPTOR ArchCmObjArray[EArchObjMax]; /// A token mapper for the objects in the ArmNamespaceObjectArray /// The Token mapper is populated when the Repo is finalized in diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepo.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepo.c index ae5c18bffffb..e095e358dc82 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepo.c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepo.c @@ -174,7 +174,7 @@ DynPlatRepoAddObject ( } // Add to link list. - InsertTailList (&This->ArmCmObjList[ArmNamespaceObjId], &ObjNode->Link); + InsertTailList (&This->ArchCmObjList[ArmNamespaceObjId], &ObjNode->Link); This->ObjectCount += 1; if (Token != NULL) { @@ -223,7 +223,7 @@ GroupCmObjNodes ( Count = 0; Size = 0; CmObjId = CREATE_CM_ARCH_OBJECT_ID (ArchObjIndex); - ListHead = &This->ArmCmObjList[ArchObjIndex]; + ListHead = &This->ArchCmObjList[ArchObjIndex]; Link = GetFirstNode (ListHead); // Compute the total count and size of the CmObj in the list. @@ -286,7 +286,7 @@ GroupCmObjNodes ( Link = GetNextNode (ListHead, Link); } // while - CmObjDesc = &This->ArmCmObjArray[ArchObjIndex]; + CmObjDesc = &This->ArchCmObjArray[ArchObjIndex]; CmObjDesc->ObjectId = CmObjId; CmObjDesc->Size = (UINT32)Size; CmObjDesc->Count = (UINT32)Count; @@ -412,7 +412,7 @@ DynamicPlatRepoGetObject ( return EFI_INVALID_PARAMETER; } - Desc = &This->ArmCmObjArray[ArmNamespaceObjId]; + Desc = &This->ArchCmObjArray[ArmNamespaceObjId]; // Nothing here. if (Desc->Count == 0) { @@ -459,7 +459,7 @@ DynamicPlatRepoInit ( // Initialise the CmObject List. for (Index = 0; Index < EArchObjMax; Index++) { - InitializeListHead (&Repo->ArmCmObjList[Index]); + InitializeListHead (&Repo->ArchCmObjList[Index]); } Repo->ObjectCount = 0; @@ -499,14 +499,14 @@ DynamicPlatRepoShutdown ( // Free the list of objects. for (Index = 0; Index < EArchObjMax; Index++) { // Free all the nodes with this object Id. - ListHead = &DynPlatRepo->ArmCmObjList[Index]; + ListHead = &DynPlatRepo->ArchCmObjList[Index]; while (!IsListEmpty (ListHead)) { FreeCmObjNode ((CM_OBJ_NODE *)GetFirstNode (ListHead)); } // while } // for // Free the arrays. - CmObjDesc = DynPlatRepo->ArmCmObjArray; + CmObjDesc = DynPlatRepo->ArchCmObjArray; for (Index = 0; Index < EArchObjMax; Index++) { Data = CmObjDesc[Index].Data; if (Data != NULL) { -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113467): https://edk2.groups.io/g/devel/message/113467 Mute This Topic: https://groups.io/mt/103622715/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-