From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 13E89AC172F for ; Tue, 9 Jan 2024 16:30:13 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=pwMDrsa+HeZFsVYkKBpfL1XSO+1w808BViTxk7il/i0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704817812; v=1; b=S6d+oKfGxpHtkYcAIIrvqhp8HNj/upTYaC8P8PmcW2+aXza2REzQFtLNy2OfFruifSHu337E H2NYPCTSfWzSimFNFdOjGVVdFOSCIv1j46hTF/JQdbWt+6nRyN00rZ09txTO3q1TNwkOq0WreKW s320/SVd00zd1VrA+su9zZ/g= X-Received: by 127.0.0.2 with SMTP id sMd6YY7687511xmbYisN3RP7; Tue, 09 Jan 2024 08:30:12 -0800 X-Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mx.groups.io with SMTP id smtpd.web11.21038.1704817812072462640 for ; Tue, 09 Jan 2024 08:30:12 -0800 X-Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d3f29fea66so14893385ad.3 for ; Tue, 09 Jan 2024 08:30:11 -0800 (PST) X-Gm-Message-State: 0uNZ2Ra8V9qKh7okoG4eAaQEx7686176AA= X-Google-Smtp-Source: AGHT+IHY71uzavrVVlJifZExGRYR6CQm3+mbrWwG/RwCZD/SNHJmexPF6NeTLhbsn4VE83KBQgR3Yw== X-Received: by 2002:a17:902:dac8:b0:1d4:dd43:fc1b with SMTP id q8-20020a170902dac800b001d4dd43fc1bmr3302651plx.25.1704817810544; Tue, 09 Jan 2024 08:30:10 -0800 (PST) X-Received: from localhost.localdomain ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id c12-20020a170902b68c00b001d457090851sm1983596pls.289.2024.01.09.08.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 08:30:10 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Sunil V L , Ard Biesheuvel , Leif Lindholm , Pierre Gondois , Sami Mujawar Subject: [edk2-devel] [RFC PATCH v1 05/20] DynamicTablesPkg: DynamicPlatRepoLib: Rename ArmObjList as ArchObjList Date: Tue, 9 Jan 2024 21:59:29 +0530 Message-Id: <20240109162944.528006-6-sunilvl@ventanamicro.com> In-Reply-To: <20240109162944.528006-1-sunilvl@ventanamicro.com> References: <20240109162944.528006-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sunilvl@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=S6d+oKfG; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 Cc: Leif Lindholm Cc: Pierre Gondois Cc: Sami Mujawar Signed-off-by: Sunil V L --- .../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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-