From nobody Fri May 17 18:37:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+99198+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+99198+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1674847284; cv=none; d=zohomail.com; s=zohoarc; b=PebtebFAI8vAPUEY0jtMgmeJsD8kOTr7erLhDJtoSRxF6oUAjeKqJ6wvyucm24Nlag7zdNZgmuQKerckwNrncENf7UXizie6W3aPc+6S5QORoVKml1bTFB48lMTwAAj6erTl1kDeufipu/Lj/+y8lxy0nGNREmfdhf77zthrW18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674847284; h=Content-Type:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=jEN5eTXKqJ4d0UsIKss5MpE0i0hgwVgQATX9413kOSg=; b=MXlMajG0/b/k6paWQ8TO9prU2wDRSuX2H4sGG6hRHuyaFfKeC6rBCAQAFbWShVuFMIfPd2kgh2mf8ru+Ub4XTFTg6A7ydlt/8qMwtsSRTDTq8D6KnKh/PEnA9K7Aglch2taL+BMYxahL+ZLf1wbtS4b8PlwwjtT/0wMJE8jnaok= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+99198+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1674847284897457.7745026281333; Fri, 27 Jan 2023 11:21:24 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id Pm21YY1788612xMtt0EGdJRW; Fri, 27 Jan 2023 11:21:24 -0800 X-Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by mx.groups.io with SMTP id smtpd.web10.111634.1674847283782425620 for ; Fri, 27 Jan 2023 11:21:23 -0800 X-Received: by mail-pf1-f201.google.com with SMTP id cr14-20020a056a000f0e00b0058da951c487so2767937pfb.0 for ; Fri, 27 Jan 2023 11:21:23 -0800 (PST) X-Gm-Message-State: 8PuC8JC9TKOscOh3iJtyy1PPx1787277AA= X-Google-Smtp-Source: AMrXdXuFrMgixPm8OQ85OgC+LAisido2bONle2ck6XajqLdHtX/UzWJuYtJXsM4WcRDWxxjPQXKGVz2wZjOs24laUA== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6a00:1ad4:b0:586:ed25:a54b with SMTP id f20-20020a056a001ad400b00586ed25a54bmr4989555pfv.6.1674847282917; Fri, 27 Jan 2023 11:21:22 -0800 (PST) Date: Fri, 27 Jan 2023 19:21:16 +0000 Mime-Version: 1.0 Message-ID: <20230127192116.3577219-1-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH] MdeModulePkg: Correct memory type in PrePiDxeCis.h From: "Dionna Glaze via groups.io" To: devel@edk2.groups.io Cc: Dionna Glaze , Min M Xu , Jiewen Yao Precedence: Bulk List-Unsubscribe: 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,dionnaglaze@google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1674847284; bh=82dJhgmygEuyg+1j+RK1qPeS9u+Gdpcl4u7+NAgVnFI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=T/Qp4Smm587t+ZKShXxrcDaPTKcANMjUspUkRIgJAubRTotooj7AaaLBwy99UtUXY/L aquT3+QUJU9Ed5Um9iK8uJ2AwrBYgp5xIQMPLc8fdx+BP2cF1QRgP/l0tkXfFGH6DeV3J TbicQQKVa6EjE1iZGWsLt97TpTJwUmCNFMQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1674847286866100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The enumeration in MdePkg/Include/Pi/PiDxeCis.h has a duplicated entry, so the 8th position in the list doesn't count as index 7. The value EfiGcdMemoryTypeUnaccepted will have when added before EfiGcdMemoryTypeMaximum will be 6. Cc: Min M Xu Cc: Jiewen Yao Signed-off-by: Dionna Glaze Reviewed-by: Liming Gao Reviewed-by: Min Xu --- MdeModulePkg/Include/Pi/PrePiDxeCis.h | 2 +- MdePkg/Include/Pi/PiDxeCis.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Include/Pi/PrePiDxeCis.h b/MdeModulePkg/Include/P= i/PrePiDxeCis.h index 113ac37924..9be71d2618 100644 --- a/MdeModulePkg/Include/Pi/PrePiDxeCis.h +++ b/MdeModulePkg/Include/Pi/PrePiDxeCis.h @@ -20,6 +20,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent /// After this memory region is defined in PI spec, it should be a value in /// EFI_GCD_MEMORY_TYPE in PiDxeCis.h. /// -#define EFI_GCD_MEMORY_TYPE_UNACCEPTED 7 +#define EFI_GCD_MEMORY_TYPE_UNACCEPTED 6 =20 #endif diff --git a/MdePkg/Include/Pi/PiDxeCis.h b/MdePkg/Include/Pi/PiDxeCis.h index 27b219aa3f..bb7fb2c38a 100644 --- a/MdePkg/Include/Pi/PiDxeCis.h +++ b/MdePkg/Include/Pi/PiDxeCis.h @@ -64,7 +64,7 @@ typedef enum { // /// EfiGcdMemoryTypeUnaccepted is defined in PrePiDxeCis.h because it= has not been // /// defined in PI spec. // EfiGcdMemoryTypeUnaccepted, - EfiGcdMemoryTypeMaximum =3D 8 + EfiGcdMemoryTypeMaximum =3D 7 } EFI_GCD_MEMORY_TYPE; =20 /// --=20 2.39.1.456.gfc5497dd1b-goog -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99198): https://edk2.groups.io/g/devel/message/99198 Mute This Topic: https://groups.io/mt/96573795/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-