GetContainerHeaderSize() parses header component entries to find the
offset of the end of the last component entry and checks this against
ContainerHdr->DataOffset. However, there is a valid case where this can
exactly equal to ContainerHdr->DataOffset, when the component alignment is
small enough and there is no component auth data (AuthType is none). This
check is changed to fail on greater than instead of greater or equal to
cover this case.
Signed-off-by: Bejean Mosher <bejean.mosher@intel.com>
Add support to print misc image info in shell. Misc image will only be
printed when BOOT_FLAGS_MISC is set.
Also fixes some minor bugs in 5968cfa919 ("OsLoader: Print all extra
images")
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Currently only PreOs and Extra0 image info is printed in boot options
list, this patch prints all of them.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
The patch handles EfiResetShutdown. With the patch, one can
test "reset off" under OS Loader.
The patch also
- fixes a wrong reference error in ResetSystemLib.inf.
- add shutdown text in CmdReset.c
Signed-off-by: Stanley Chang <stanley.chang@intel.com>
LoadMultibootModString() checks the module index against MultiBoot->
MbModuleNumber, which value has not been assigned when called, causing
failure when loading multiboot image with modules. Remove the check to
fix it.
Fixes c9d70e74dc ("fix: multiboot mod string in zero-terminated ASCII
format #1913")
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Convert assert in ContainerLib's GetContainerHeaderSize
to if statement as it breaks firmware update functionality
Signed-off-by: Sean McGinn <sean.mcginn@intel.com>
Change the data type of Width to UINT32 of MmRead() declared in
CmdPci.h to match its definition in CmdMm.c.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>