Reviewed-by: Zailiang Sun <zailiang....@intel.com> > -----Original Message----- > From: Kinney, Michael D > Sent: Tuesday, July 23, 2019 6:59 AM > To: devel@edk2.groups.io > Cc: Sun, Zailiang <zailiang....@intel.com>; Qian, Yi <yi.q...@intel.com>; > Gary Lin <g...@suse.com> > Subject: [edk2-platforms Patch V3 12/12] Vlv2TbltDevicePkg/PlatformDxe: > Use S3BootScriptWidth enums > > Update to use S3BootScriptWidth enum values instead of EfiBootScriptWidth > enum values when calling S3BootScriptLib services. This fixes an XCODE5 > build failure. > > Cc: Zailiang Sun <zailiang....@intel.com> > Cc: Yi Qian <yi.q...@intel.com> > Cc: Gary Lin <g...@suse.com> > Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> > --- > .../Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c > b/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c > index 0bc3f44c49..d9782aafba 100644 > --- a/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c > +++ b/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c > @@ -968,25 +968,25 @@ PchInitBeforeBoot() > // Saved SPI Opcode menu to fix EFI variable unable to write after S3 > resume. > // > S3BootScriptSaveMemWrite ( > - EfiBootScriptWidthUint32, > + S3BootScriptWidthUint32, > (UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU0)), > 1, > (VOID *)(UINTN)(SPI_BASE_ADDRESS + > (R_PCH_SPI_OPMENU0))); > > S3BootScriptSaveMemWrite ( > - EfiBootScriptWidthUint32, > + S3BootScriptWidthUint32, > (UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU1)), > 1, > (VOID *)(UINTN)(SPI_BASE_ADDRESS + > (R_PCH_SPI_OPMENU1))); > > S3BootScriptSaveMemWrite ( > - EfiBootScriptWidthUint16, > + S3BootScriptWidthUint16, > (UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_OPTYPE), > 1, > (VOID *)(UINTN)(SPI_BASE_ADDRESS + > R_PCH_SPI_OPTYPE)); > > S3BootScriptSaveMemWrite ( > - EfiBootScriptWidthUint16, > + S3BootScriptWidthUint16, > (UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_PREOP), > 1, > (VOID *)(UINTN)(SPI_BASE_ADDRESS + > R_PCH_SPI_PREOP)); > @@ -995,7 +995,7 @@ PchInitBeforeBoot() > // Saved MTPMC_1 for S3 resume. > // > S3BootScriptSaveMemWrite ( > - EfiBootScriptWidthUint32, > + S3BootScriptWidthUint32, > (UINTN)(PMC_BASE_ADDRESS + R_PCH_PMC_MTPMC1), > 1, > (VOID *)(UINTN)(PMC_BASE_ADDRESS + > R_PCH_PMC_MTPMC1)); > -- > 2.21.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#44195): https://edk2.groups.io/g/devel/message/44195 Mute This Topic: https://groups.io/mt/32564739/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-