public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support
@ 2017-11-29 10:14 Star Zeng
  2017-11-29 10:14 ` [PATCH V2 1/4] MdePkg PiFirmwareVolume.h: Add USED_SIZE FV_EXT_TYPE definitions Star Zeng
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Star Zeng @ 2017-11-29 10:14 UTC (permalink / raw)
  To: edk2-devel; +Cc: Star Zeng, Liming Gao

V2:
The first version did not adjust ExtEntryList in the while loop
of [PATCH 2/4] and [PATCH 4/4], it is a bug and fixed in this V2.

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>

Star Zeng (4):
  MdePkg PiFirmwareVolume.h: Add USED_SIZE FV_EXT_TYPE definitions
  MdeModulePkg PeiCore: Support USED_SIZE FV_EXT_TYPE
  MdeModulePkg DxeCore: Check FvImage alignment
  MdeModulePkg DxeCore: Support USED_SIZE FV_EXT_TYPE

 MdeModulePkg/Core/Dxe/Dispatcher/Dispatcher.c | 115 +++++++++++++++++++++++---
 MdeModulePkg/Core/Pei/FwVol/FwVol.c           |  91 +++++++++++++++++++-
 MdePkg/Include/Pi/PiFirmwareVolume.h          |  23 +++++-
 3 files changed, 211 insertions(+), 18 deletions(-)

-- 
2.7.0.windows.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-30 11:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-29 10:14 [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support Star Zeng
2017-11-29 10:14 ` [PATCH V2 1/4] MdePkg PiFirmwareVolume.h: Add USED_SIZE FV_EXT_TYPE definitions Star Zeng
2017-11-29 10:14 ` [PATCH V2 2/4] MdeModulePkg PeiCore: Support USED_SIZE FV_EXT_TYPE Star Zeng
2017-11-29 10:14 ` [PATCH V2 3/4] MdeModulePkg DxeCore: Check FvImage alignment Star Zeng
2017-11-29 10:14 ` [PATCH V2 4/4] MdeModulePkg DxeCore: Support USED_SIZE FV_EXT_TYPE Star Zeng
2017-11-30 11:09 ` [PATCH 0/4] Add USED_SIZE FV_EXT_TYPE support Gao, Liming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox