mirror_edk2/MdeModulePkg
Laszlo Ersek b07ea4c198 MdeModulePkg: SmmIplEntry(): don't suppress SMM core startup failure
When the ExecuteSmmCoreFromSmram() function fails, SmmIplEntry()
restores the SMRAM range to EFI_MEMORY_UC. However, it saves the
return value of gDS->SetMemorySpaceAttributes() in the same Status
variable that gDS->contains the return value of ExecuteSmmCoreFromSmram().

Therefore, if gDS->SetMemorySpaceAttributes() succeeds, the failure
of ExecuteSmmCoreFromSmram() is masked, and Bad Things Happen (TM).

Introduce a temporary variable just for the return value of
gDS->SetMemorySpaceAttributes().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17417 6f19259b-4bc3-4df7-8a09-765794883524
2015-05-12 01:48:34 +00:00
..
Application MdeModulePkg: Add BootManagerMenuApp. 2015-05-06 04:49:30 +00:00
Bus MdePkg, MdeModulePkg: Remove EFI_ABORTED from I2C protocols per PI spec 1.4. 2015-05-08 07:30:45 +00:00
Core MdeModulePkg: SmmIplEntry(): don't suppress SMM core startup failure 2015-05-12 01:48:34 +00:00
Include MdeModulePkg: Process Sys Prep load options in BdsDxe driver. 2015-05-11 06:33:45 +00:00
Library MdeModulePkg: Process Sys Prep load options in BdsDxe driver. 2015-05-11 06:33:45 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg: Add BootManagerPolicyDxe to produce BootManagerPolicy protocol. 2015-05-11 06:34:53 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Remove CapsulePpi definition 2015-05-08 07:44:01 +00:00
MdeModulePkg.dsc MdeModulePkg: Add BootManagerPolicyDxe to produce BootManagerPolicy protocol. 2015-05-11 06:34:53 +00:00
MdeModulePkg.uni MdeModulePkg: Update comments for PcdMemoryProfileMemoryType 2015-04-29 08:12:11 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00