mirror of https://github.com/acidanthera/audk.git
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:
parent
8270a5fd08
commit
ac94ab631f
|
@ -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.
|
||||
//
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
MemoryAllocationLib
|
||||
BaseMemoryLib
|
||||
DebugLib
|
||||
HobLib
|
||||
|
||||
[FixedPcd.common]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler
|
||||
|
|
Loading…
Reference in New Issue