From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.7714.1582769133721161777 for ; Wed, 26 Feb 2020 18:05:33 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 18:05:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,490,1574150400"; d="scan'208";a="285184487" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 26 Feb 2020 18:05:33 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Feb 2020 18:05:33 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 27 Feb 2020 10:05:31 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Thu, 27 Feb 2020 10:05:31 +0800 From: "Liming Gao" To: "Fu, Siyuan" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Chaganty, Rangasai V" Subject: Re: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. Thread-Topic: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. Thread-Index: AQHV7RFqM8JBOcixy0SUd6FDY0pNVKguSp2Q Date: Thu, 27 Feb 2020 02:05:30 +0000 Message-ID: <2ff741da57d0466188f65d9e73b49e42@intel.com> References: <20200227015826.67948-1-siyuan.fu@intel.com> In-Reply-To: <20200227015826.67948-1-siyuan.fu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action x-originating-ip: [10.239.127.36] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: Fu, Siyuan > Sent: Thursday, February 27, 2020 9:58 AM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V ; Gao, Liming > Subject: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. >=20 > This patch fixes compiler error introduced by commit > b0099a39bd. >=20 > BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=3D2449 > Cc: Ray Ni > Cc: Rangasai V Chaganty > Cc: Liming Gao > Signed-off-by: Siyuan Fu > --- > .../Feature/ShadowMicrocode/ShadowMicrocodePei.c | 2 +- > .../Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/Shadow= MicrocodePei.c > b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocodePe= i.c > index 7e4084247e..8d6574f667 100644 > --- a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicroco= dePei.c > +++ b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicroco= dePei.c > @@ -247,7 +247,7 @@ ShadowMicrocodePatchWorker ( > (VOID *) Patches[Index].Address, > Patches[Index].Size > ); > - MicrocodeAddressInMemory[Index] =3D (UINT64) Walker; > + MicrocodeAddressInMemory[Index] =3D (UINT64) (UINTN) Walker; > Flashcontext->MicrocodeAddressInFlash[Index] =3D (UINT64) Patches[I= ndex].Address; > Walker +=3D Patches[Index].Size; > } > diff --git a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowIn= foHob.h > b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h > index d887b39123..1daae1234a 100644 > --- a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h > +++ b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h > @@ -58,7 +58,7 @@ typedef struct { > // microcode patch address on flash. The address is placed in same > // order as the microcode patches in MicrocodeAddrInMemory. > // > - UINT64 MicrocodeAddressInFlash[]; > + UINT64 MicrocodeAddressInFlash[0]; > } EFI_MICROCODE_STORAGE_TYPE_FLASH_CONTEXT; >=20 > #endif > -- > 2.19.1.windows.1