Work around fix to bypass to register GUID on S3 resume.

DxeIpl does not shadow itself on S3 resume.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3995 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2007-09-30 01:59:02 +00:00
parent 8270a5fd08
commit ac94ab631f
2 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,7 @@ Abstract:
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/ExtractGuidedSectionLib.h>
#include <Library/HobLib.h>
STATIC GUID *mExtractHandlerGuidTable;
STATIC UINT32 mNumberOfExtractHandler;
@ -109,6 +110,13 @@ ExtractGuidedSectionRegisterHandlers (
IN EXTRACT_GUIDED_SECTION_DECODE_HANDLER DecodeHandler
)
{
if (GetBootModeHob () == BOOT_ON_S3_RESUME) {
//
// (Work around fix to bypass registeration on S3 resume.)
// S3 resume does not shadow DxeIpl.
//
return RETURN_SUCCESS;
}
//
// Check input paramter.
//

View File

@ -43,6 +43,7 @@
MemoryAllocationLib
BaseMemoryLib
DebugLib
HobLib
[FixedPcd.common]
gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler