From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DA7692218E923 for ; Wed, 6 Dec 2017 18:45:27 -0800 (PST) Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2017 18:50:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,370,1508828400"; d="scan'208";a="738576" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 06 Dec 2017 18:50:00 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 6 Dec 2017 18:49:59 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 6 Dec 2017 18:49:59 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Thu, 7 Dec 2017 10:49:58 +0800 From: "Yao, Jiewen" To: "Gao, Liming" , "edk2-devel@lists.01.org" CC: "Dong, Eric" , "Zeng, Star" Thread-Topic: [edk2] [Patch] UefiCpuPkg: Update SecCore to get BFV size based on BFV header FvLength Thread-Index: AQHTbmikutwkilFHF02GliVMhCtSaKM3L0EA Date: Thu, 7 Dec 2017 02:49:57 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA3C6FC@shsmsx102.ccr.corp.intel.com> References: <20171206080228.18204-1-liming.gao@intel.com> In-Reply-To: <20171206080228.18204-1-liming.gao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjBkM2E4MTItYzM3Yy00NzJiLTk4MDEtZDI5YmYyZDJjNzdiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJlOXQ4eHExR1RZYmdYM1JHcXJPTFwvMnVcLzJLWklqeDRaMkZDdmQyRHFOcXFLS3JZNmYycnVOVWVPVm9IZ2hQSE8ifQ== x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] UefiCpuPkg: Update SecCore to get BFV size based on BFV header FvLength X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 02:45:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Li= ming > Gao > Sent: Wednesday, December 6, 2017 4:02 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric ; Zeng, Star > Subject: [edk2] [Patch] UefiCpuPkg: Update SecCore to get BFV size based = on > BFV header FvLength >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Liming Gao > Cc: Eric Dong > Cc: Star Zeng > --- > UefiCpuPkg/SecCore/SecMain.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c > index 173bbfcfcb..c241d3704a 100644 > --- a/UefiCpuPkg/SecCore/SecMain.c > +++ b/UefiCpuPkg/SecCore/SecMain.c > @@ -189,7 +189,7 @@ SecStartup ( > // > SecCoreData.DataSize =3D (UINT16) sizeof > (EFI_SEC_PEI_HAND_OFF); > SecCoreData.BootFirmwareVolumeBase =3D BootFirmwareVolume; > - SecCoreData.BootFirmwareVolumeSize =3D (UINTN)(0x100000000ULL - (UINTN= ) > BootFirmwareVolume); > + SecCoreData.BootFirmwareVolumeSize =3D > (UINTN)((EFI_FIRMWARE_VOLUME_HEADER *) > BootFirmwareVolume)->FvLength; > SecCoreData.TemporaryRamBase =3D (VOID*)(UINTN) TempRamBase; > SecCoreData.TemporaryRamSize =3D SizeOfRam; > SecCoreData.PeiTemporaryRamBase =3D SecCoreData.TemporaryRamBase; > -- > 2.11.0.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel