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 17C17740040 for ; Thu, 25 Jan 2024 15:19:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7OE+ndx9xVuw3EzEZwFDbV89WD4S3Eb3FgrblIRVy+o=; 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=1706195955; v=1; b=dULoPcbFhipxiEiCv09/UKUKDJHutUm0eUhPE4E1/85IBpHprE3s5WM/FAC43PcGTgEQg8SP 4UwKnGSjSfI2awOpzIFkhjGKGWo/ZnT5XAt0xD/adfRna1byBWCdy1twKRshKk/U/a6jQ4+r0ZQ scf9vh8qHO7YqlXmLMdPMQMc= X-Received: by 127.0.0.2 with SMTP id fHBuYY7687511xtAS2SJOUiB; Thu, 25 Jan 2024 07:19:15 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.20294.1706195955257560449 for ; Thu, 25 Jan 2024 07:19:15 -0800 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 6AD8D1FB; Thu, 25 Jan 2024 07:19:59 -0800 (PST) X-Received: from e126645.arm.com (unknown [10.57.47.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 860DC3F5A1; Thu, 25 Jan 2024 07:19:13 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Sami Mujawar , Leif Lindholm , Ard Biesheuvel , Pierre Gondois Subject: [edk2-devel] [PATCH v5 03/11] DynamicTablesPkg: Use new CPC revision macro Date: Thu, 25 Jan 2024 16:18:42 +0100 Message-Id: <20240125151850.620749-4-pierre.gondois@arm.com> In-Reply-To: <20240125151850.620749-1-pierre.gondois@arm.com> References: <20240125151850.620749-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 Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: DeLAzZCKOHlvvB1U9uh3FiBNx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=dULoPcbF; 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 Make use of the newly added CPC revision macro. Reviewed-by: Sami Mujawar Signed-off-by: Pierre Gondois --- DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c b/= DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c index d4e3e252cbe6..949aee2f6961 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c @@ -3524,7 +3524,7 @@ AmlCreateCpcNode ( }=0D =0D // Revision 3 per ACPI 6.4 specification=0D - if (CpcInfo->Revision =3D=3D 3) {=0D + if (CpcInfo->Revision =3D=3D EFI_ACPI_6_5_AML_CPC_REVISION) {=0D // NumEntries 23 per ACPI 6.4 specification=0D NumberOfEntries =3D 23;=0D } else {=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114413): https://edk2.groups.io/g/devel/message/114413 Mute This Topic: https://groups.io/mt/103955495/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-