audk/MdeModulePkg/Library/UefiBootManagerLib
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
..
BmBoot.c MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep. 2019-02-25 11:50:51 +01:00
BmBootDescription.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmConnect.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmConsole.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmDriverHealth.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmHotkey.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
BmLoadOption.c MdeModulePkg/UefiBootManagerLib: Fix small LoadOptionToVariable leak 2018-07-06 15:38:15 +08:00
BmMisc.c MdeModulePkg: Clean up source files 2018-06-28 11:19:45 +08:00
InternalBm.h MdeModulePkg/UefiBootManagerLib: fix LoadImage/StartImage status code rep. 2019-02-25 11:50:51 +01:00
UefiBootManagerLib.inf MdeModulePkg: Removing ipf which is no longer supported from edk2. 2018-09-06 15:25:16 +08:00
UefiBootManagerLib.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00