summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-30 01:59:02 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-30 01:59:02 +0000
commitac94ab631fd1fbd70382b3d28bfe0c6c75fb45d1 (patch)
treec81682bcf0e8c3aa97b7db4b77f25b8138105027
parent8270a5fd08e17016a2065647c82c226485e8bfa1 (diff)
downloadedk2-platforms-ac94ab631fd1fbd70382b3d28bfe0c6c75fb45d1.tar.xz
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
-rw-r--r--MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.c8
-rw-r--r--MdePkg/Library/PeiDxeExtractGuidedSectionLib/PeiDxeExtractGuidedSectionLib.inf1
2 files changed, 9 insertions, 0 deletions
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 <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.
//
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