]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg PeiCore: Support USED_SIZE FV_EXT_TYPE
authorStar Zeng <star.zeng@intel.com>
Wed, 22 Nov 2017 08:13:09 +0000 (16:13 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 1 Dec 2017 01:36:50 +0000 (09:36 +0800)
commit56c909f3b388753dce53f8ba0061236916dbb220
treeb0c99ce8193e0abda1ec248e14add602672b826e
parente8645cec1cbd0c7b754182d9a0327fd0065b8432
MdeModulePkg PeiCore: Support USED_SIZE FV_EXT_TYPE

The USED_SIZE FV_EXT_TYPE is introduced by PI 1.6 spec.

The EFI_FIRMWARE_VOLUME_EXT_ENTRY_USED_SIZE_TYPE can be used to find
out how many EFI_FVB2_ERASE_POLARITY bytes are at the end of the FV.

When the FV gets shadowed into memory you only need to copy the used
bytes into memory and fill the rest of the memory buffer with the
erase value.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Core/Pei/FwVol/FwVol.c