audk/MdeModulePkg
Laszlo Ersek 5cc67962ec MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep.
In the EFI_RETURN_STATUS_EXTENDED_DATA structure from PI-1.7, there may be
padding between the DataHeader and ReturnStatus members. The
REPORT_STATUS_CODE_EX() macro starts populating the structure immediately
after DataHeader, therefore the source data must provide for the padding.

Extract the BmReportLoadFailure() function from EfiBootManagerBoot(),
prepare a zero padding (if any) in a temporary
EFI_RETURN_STATUS_EXTENDED_DATA object, and fix the
REPORT_STATUS_CODE_EX() macro invocation.

Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Star Zeng <star.zeng@intel.com>
Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1539
Fixes: c2cf8720a5
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2019-02-25 11:50:51 +01:00
..
Application MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Bus MdeModulePkg/UfsBlockIoPei: Correct use of 'DeviceIndex' in BlkIO PPI 2019-02-25 16:33:49 +08:00
Core MdeModulePkg/PeiMain: Support EFI_PEI_CORE_FV_LOCATION_PPI 2019-02-15 13:40:30 +08:00
Include MdeModulePkg: Rename confusion function name 2019-02-25 09:14:21 +08:00
Library MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep. 2019-02-25 11:50:51 +01:00
Logo MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
Universal MdeModulePkg: change the function name ResetSystem 2019-02-22 09:45:43 +08:00
MdeModulePkg.dec MdeModulePkg: Add GUID for LockBox to save storage dev to init in S3 2019-02-22 08:20:07 +08:00
MdeModulePkg.dsc MdeModulePkg: Add the runtime ResetSystemLib in MdeModulePkg.dsc 2019-02-22 09:45:45 +08:00
MdeModulePkg.uni MdeModulePkg: Refine description a little for PcdEmuVariableNvStoreReserved 2019-01-24 10:52:36 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00