mirror of https://github.com/acidanthera/audk.git
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> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
3ff8b0c2bd
commit
f016295969
|
@ -189,7 +189,7 @@ SecStartup (
|
||||||
//
|
//
|
||||||
SecCoreData.DataSize = (UINT16) sizeof (EFI_SEC_PEI_HAND_OFF);
|
SecCoreData.DataSize = (UINT16) sizeof (EFI_SEC_PEI_HAND_OFF);
|
||||||
SecCoreData.BootFirmwareVolumeBase = BootFirmwareVolume;
|
SecCoreData.BootFirmwareVolumeBase = BootFirmwareVolume;
|
||||||
SecCoreData.BootFirmwareVolumeSize = (UINTN)(0x100000000ULL - (UINTN) BootFirmwareVolume);
|
SecCoreData.BootFirmwareVolumeSize = (UINTN)((EFI_FIRMWARE_VOLUME_HEADER *) BootFirmwareVolume)->FvLength;
|
||||||
SecCoreData.TemporaryRamBase = (VOID*)(UINTN) TempRamBase;
|
SecCoreData.TemporaryRamBase = (VOID*)(UINTN) TempRamBase;
|
||||||
SecCoreData.TemporaryRamSize = SizeOfRam;
|
SecCoreData.TemporaryRamSize = SizeOfRam;
|
||||||
SecCoreData.PeiTemporaryRamBase = SecCoreData.TemporaryRamBase;
|
SecCoreData.PeiTemporaryRamBase = SecCoreData.TemporaryRamBase;
|
||||||
|
|
Loading…
Reference in New Issue