From ac94ab631fd1fbd70382b3d28bfe0c6c75fb45d1 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Sun, 30 Sep 2007 01:59:02 +0000 Subject: 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 --- .../PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c | 8 ++++++++ .../PeiDxeExtractGuidedSectionLib.inf | 1 + 2 files changed, 9 insertions(+) diff --git a/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c b/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c index 5de312aa92..33c582b371 100644 --- a/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c +++ b/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c @@ -26,6 +26,7 @@ Abstract: #include #include #include +#include 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. // diff --git a/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.inf b/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.inf index 0316107219..7cb040c525 100644 --- a/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.inf +++ b/MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.inf @@ -43,6 +43,7 @@ MemoryAllocationLib BaseMemoryLib DebugLib + HobLib [FixedPcd.common] gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler -- cgit v1.2.3