audk/MdeModulePkg
KrishnadasX Veliyathuparambil Prakashan cb38ace647 MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC.
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2818

For better memory management, re-ordered the DestroyRamDisk and
ReportStatusCode calls inside the EfiBootManagerBoot() function.

This will help to clean the unused memory before reporting the
failure status, so that OEMs can use RSC Listener to launch
custom boot option or application for recovering the failed
hard drive.

This change will help to ensure that the allocated pool of memory
for the failed boot option is freed before executing OEM's RSC
listener callback to handle every boot option failure.

Signed-off-by: KrishnadasX Veliyathuparambil Prakashan <krishnadasx.veliyathuparambil.prakashan@intel.com>
Cc: "Gao, Zhichao" <zhichao.gao@intel.com>
Cc: "Ni, Ray" <ray.ni@intel.com>
Reviewed-by: Sunny Wang <sunnywang@hpe.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
2020-07-20 15:00:18 +00:00
..
Application MdeModulePkg: Sets the Cursor to selected BootOption. 2020-06-10 03:26:43 +00:00
Bus MdeModulePkg/UfsPassThruDxe: Use BaseLib linked list iteration macros 2020-04-21 02:20:51 +00:00
Core MdeModulePkg: Add New Memory Attributes 2020-07-15 14:58:25 +00:00
Include MdeModulePkg/VariableSmmRuntimeDxe: switch to MM communicate 2 2020-05-12 19:23:44 +00:00
Library MdeModulePkg: Upon BootOption failure, Destroy RamDisk memory before RSC. 2020-07-20 15:00:18 +00:00
Logo MdeModulePkg/Logo:Add RISCV64 architecture 2020-05-07 03:17:15 +00:00
Test MdeModulePkg: Add DxeResetSystemLib unit test 2020-02-07 19:18:53 +00:00
Universal MdeModulePkg/DisplayEngine: Add Debug message to show mismatch menu info 2020-07-16 04:26:51 +00:00
MdeModulePkg.ci.yaml MdeModulePkg/RegularExpressionDxe: Make oniguruma a submodule in edk2. 2020-04-13 01:26:12 +00:00
MdeModulePkg.dec MdeModulePkg.dec: Change PCDs for status code. 2020-06-18 05:39:09 +00:00
MdeModulePkg.dsc MdeModulePkg: Use LockBoxNullLib for RISC-V 2020-04-03 17:09:12 +00:00
MdeModulePkg.uni MdeModulePkg: disable properties table generation but retain the code 2020-04-07 08:15:46 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00