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 7A32774004C for ; Thu, 21 Mar 2024 15:54:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wSLrPG8fFGLxK7N0saxoE2dHgdCOaxP0xPpfDlNqaeI=; 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:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1711036448; v=1; b=HbUjqo6ou3Bt0xxwHJlymsEi4Yf+rBP5ZpxTNagroJWPUgGCKMYvEelhJWzoyteo5vSaGgKZ U/6OL66/CSjNZdGxvQh9m6r6WBNTZDu/iW0adYfDogBw0jyk1/CXnNuBA8Rzyy6qJ0NcAMrt8pg QAO5suMxxoDs4JsvB2W5WJ77ityfMEsdgb3OKmDCaKAcKYJems3oP9epdKJxUDcm+6yEhibjbs7 QuS96w29IExaD1a/drzAcA12hMeNDEaCgA/WDMWDuuht5MPWPh7UhwbyKSS4WjLJp925/RYrljd Ry9hWoTabocSiap1mEC86lG6sL13b3CWahXFpTeeKg35g== X-Received: by 127.0.0.2 with SMTP id OHnqYY7687511xdb9bmXCkS9; Thu, 21 Mar 2024 08:54:08 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.364.1711036447435912353 for ; Thu, 21 Mar 2024 08:54:07 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 586A31007; Thu, 21 Mar 2024 08:54:41 -0700 (PDT) X-Received: from e126645.nice.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 85E643F67D; Thu, 21 Mar 2024 08:54:04 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io Cc: Pierre Gondois , Sami Mujawar , Pierre Gondois , Yeo Reum Yun , Sunil V L , AbdulLateef Attar , Jeshua Smith , Jeff Brasen , Girish Mahadevan , Leif Lindholm , Meenakshi Aggarwal Subject: [edk2-devel] [PATCH 05/16] DynamicTablesPkg: Add support for ArchCommon objects in CmObjParser Date: Thu, 21 Mar 2024 16:53:08 +0100 Message-Id: <20240321155319.701355-6-pierre.gondois@arm.com> In-Reply-To: <20240321155319.701355-1-pierre.gondois@arm.com> References: <20240321155319.701355-1-pierre.gondois@arm.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 Resent-Date: Thu, 21 Mar 2024 08:54:07 -0700 Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ymrav4iWSMHDXNxduvQ5ZuPwx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=HbUjqo6o; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=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 From: Sami Mujawar Update the Cm Object Parser to support parsing of Arch Common namespace objects. Cc: Pierre Gondois Cc: Yeo Reum Yun Cc: AbdulLateef Attar Cc: Jeshua Smith Cc: Jeff Brasen Cc: Girish Mahadevan Cc: Leif Lindholm Cc: Meenakshi Aggarwal Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- .../ConfigurationManagerObjectParser.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationMa= nagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Config= urationManagerObjectParser.c index 68d6c57acfc0..6f5dbdfd2d86 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerOb= jectParser.c @@ -667,6 +667,13 @@ STATIC CONST CM_OBJ_PARSER CmArmPsdInfoParser[] =3D { { "NumProc", 4, "0x%x", NULL },=0D };=0D =0D +/** A parser for Arch Common namespace objects.=0D +*/=0D +STATIC CONST CM_OBJ_PARSER_ARRAY ArchCommonNamespaceObjectParser[] =3D {= =0D + CM_PARSER_ADD_OBJECT_RESERVED (EArchCommonObjReserved),=0D + CM_PARSER_ADD_OBJECT_RESERVED (EArchCommonObjMax)=0D +};=0D +=0D /** A parser for Arm namespace objects.=0D */=0D STATIC CONST CM_OBJ_PARSER_ARRAY ArmNamespaceObjectParser[] =3D {=0D @@ -1050,6 +1057,21 @@ ParseCmObjDesc ( =0D ParserArray =3D &ArmNamespaceObjectParser[ObjId];=0D break;=0D +=0D + case EObjNameSpaceArchCommon:=0D + if (ObjId >=3D EArchCommonObjMax) {=0D + ASSERT (0);=0D + return;=0D + }=0D +=0D + if (ObjId >=3D ARRAY_SIZE (ArchCommonNamespaceObjectParser)) {=0D + DEBUG ((DEBUG_ERROR, "ObjId 0x%x is missing from the ArchCommonNam= espaceObjectParser array\n", ObjId));=0D + ASSERT (0);=0D + return;=0D + }=0D +=0D + ParserArray =3D &ArchCommonNamespaceObjectParser[ObjId];=0D + break;=0D default:=0D // Not supported=0D DEBUG ((DEBUG_ERROR, "NameSpaceId 0x%x, ObjId 0x%x is not supported = by the parser\n", NameSpaceId, ObjId));=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116966): https://edk2.groups.io/g/devel/message/116966 Mute This Topic: https://groups.io/mt/105067971/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-