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 83F399413A6 for ; Tue, 12 Dec 2023 09:29:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=P6NbyYqbhJXK6tzezwbDaeZLpvOTTTOW6WtP0Fs+L/A=; 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=1702373379; v=1; b=dAx8kAqNg8pB2Yvv4uqWRAMyOuzkcR1kyaXCv8+J3mxa27F5CMgwRjjVlgjMOkM4Ah0QHcSP auuCtSwoT1n7FFQYr6B78cU9z90sZwk8q33LAPQlpAqkeoJ+CWunt98VIvJvzgwwUUs1PDAq7FM On/xABNwNEDqgB1EgXSTcyVs= X-Received: by 127.0.0.2 with SMTP id dfFjYY7687511xnJ6Nvwm2Vj; Tue, 12 Dec 2023 01:29:39 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.12997.1702373378624069292 for ; Tue, 12 Dec 2023 01:29:38 -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 B4A4C143D; Tue, 12 Dec 2023 01:30:24 -0800 (PST) X-Received: from e126645.arm.com (unknown [10.57.44.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0F17F3F5A1; Tue, 12 Dec 2023 01:29:36 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io Cc: Ray Ni , Sami Mujawar , Leif Lindholm , Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 03/10] DynamicTablesPkg: Use new CPC revision macro Date: Tue, 12 Dec 2023 10:28:40 +0100 Message-Id: <20231212092847.1253756-4-pierre.gondois@arm.com> In-Reply-To: <20231212092847.1253756-1-pierre.gondois@arm.com> References: <20231212092847.1253756-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: ptCQ2erWrxZhzk8OLJhDVungx7686176AA= 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=dAx8kAqN; 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. 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 a6db34fb970f..ad7809e76e61 100644 --- a/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c +++ b/DynamicTablesPkg/Library/Common/AmlLib/CodeGen/AmlCodeGen.c @@ -3523,7 +3523,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 (#112370): https://edk2.groups.io/g/devel/message/112370 Mute This Topic: https://groups.io/mt/103127048/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-