From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Gao, Liming" <liming.gao@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Dong, Eric" <eric.dong@intel.com>, "Zeng, Star" <star.zeng@intel.com>
Subject: Re: [Patch] UefiCpuPkg: Update SecCore to get BFV size based on BFV header FvLength
Date: Thu, 7 Dec 2017 02:49:57 +0000 [thread overview]
Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA3C6FC@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <20171206080228.18204-1-liming.gao@intel.com>
Reviewed-by: Jiewen.yao@intel.com
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Liming
> Gao
> Sent: Wednesday, December 6, 2017 4:02 PM
> To: edk2-devel@lists.01.org
> Cc: Dong, Eric <eric.dong@intel.com>; Zeng, Star <star.zeng@intel.com>
> Subject: [edk2] [Patch] UefiCpuPkg: Update SecCore to get BFV size based on
> BFV header FvLength
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Liming Gao <liming.gao@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Star Zeng <star.zeng@intel.com>
> ---
> UefiCpuPkg/SecCore/SecMain.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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 = (UINT16) sizeof
> (EFI_SEC_PEI_HAND_OFF);
> SecCoreData.BootFirmwareVolumeBase = BootFirmwareVolume;
> - SecCoreData.BootFirmwareVolumeSize = (UINTN)(0x100000000ULL - (UINTN)
> BootFirmwareVolume);
> + SecCoreData.BootFirmwareVolumeSize =
> (UINTN)((EFI_FIRMWARE_VOLUME_HEADER *)
> BootFirmwareVolume)->FvLength;
> SecCoreData.TemporaryRamBase = (VOID*)(UINTN) TempRamBase;
> SecCoreData.TemporaryRamSize = SizeOfRam;
> SecCoreData.PeiTemporaryRamBase = SecCoreData.TemporaryRamBase;
> --
> 2.11.0.windows.1
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2017-12-07 2:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 8:02 [Patch] UefiCpuPkg: Update SecCore to get BFV size based on BFV header FvLength Liming Gao
2017-12-06 8:24 ` Zeng, Star
2017-12-07 2:49 ` Yao, Jiewen [this message]
2017-12-07 2:54 ` Dong, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=74D8A39837DF1E4DA445A8C0B3885C503AA3C6FC@shsmsx102.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox