From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.51945.1622510781629093942 for ; Mon, 31 May 2021 18:26:22 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 01 Jun 2021 09:26:19 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" References: <20210527081723.1934-1-kuqin12@gmail.com> <20210527081723.1934-2-kuqin12@gmail.com> In-Reply-To: <20210527081723.1934-2-kuqin12@gmail.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYxIDEvMV0gTWRlUGtnOiBNbUNvbnRyb2w6IEZpeCBmdW5jdGlvbiBhbmQgc3RydWN0dXJlIGRlZmluaXRpb24gbWlzbWF0Y2hlcw==?= Date: Tue, 1 Jun 2021 09:26:19 +0800 Message-ID: <00d801d75685$1fac8cc0$5f05a640$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQMIPmvY18L73rBo6C6by7yK9/OPvQJaXBtkqIm6g8A= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA= =B1=ED Kun Qin > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C227=C8=D5 16:17 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Michael D Kinney ; Liming Gao > ; Zhiguang Liu > =D6=F7=CC=E2: [edk2-devel] [PATCH v1 1/1] MdePkg: MmControl: Fix functio= n and > structure definition mismatches >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3397 >=20 > Current Ppi/MmControl.h file has structure definition of "struct > _PEI_MM_CONTROL_PPI". This name mismatches with its definition in PI > Specification v1.7 (Errata) as "struct _EFI_PEI_MM_CONTROL_PPI". >=20 > In addition, field types "PEI_MM_ACTIVATE" and "PEI_MM_DEACTIVATE" > used > in "struct _PEI_MM_CONTROL_PPI" mismatches with the definition of > "EFI_PEI_MM_ACTIVATE" and "EFI_PEI_MM_DEACTIVATE" in the PI spec. >=20 > This change fixes these mismatches by using the PI spec defined names. >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu >=20 > Fixes: 6f33f7a262314af35e2b99c849e08928ea49aa55 > Signed-off-by: Kun Qin > --- > MdePkg/Include/Ppi/MmControl.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/MdePkg/Include/Ppi/MmControl.h > b/MdePkg/Include/Ppi/MmControl.h > index 983ed95cd53d..17586f437b4b 100644 > --- a/MdePkg/Include/Ppi/MmControl.h > +++ b/MdePkg/Include/Ppi/MmControl.h > @@ -69,7 +69,7 @@ EFI_STATUS > **/ > typedef > EFI_STATUS > -(EFIAPI *PEI_MM_DEACTIVATE) ( > +(EFIAPI *EFI_PEI_MM_DEACTIVATE) ( > IN EFI_PEI_SERVICES **PeiServices, > IN EFI_PEI_MM_CONTROL_PPI * This, > IN BOOLEAN Periodic OPTIONAL > @@ -80,9 +80,9 @@ EFI_STATUS > /// platform hardware that generates an MMI. There are often I/O ports > that, when accessed, will > /// generate the MMI. Also, the hardware optionally supports the periodic > generation of these signals. > /// > -struct _PEI_MM_CONTROL_PPI { > - PEI_MM_ACTIVATE Trigger; > - PEI_MM_DEACTIVATE Clear; > +struct _EFI_PEI_MM_CONTROL_PPI { > + EFI_PEI_MM_ACTIVATE Trigger; > + EFI_PEI_MM_DEACTIVATE Clear; > }; >=20 > extern EFI_GUID gEfiPeiMmControlPpiGuid; > -- > 2.31.1.windows.1 >=20 >=20 >=20 >=20 >=20