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:
@ -26,6 +26,7 @@ Abstract:
|
|||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/ExtractGuidedSectionLib.h>
|
#include <Library/ExtractGuidedSectionLib.h>
|
||||||
|
#include <Library/HobLib.h>
|
||||||
|
|
||||||
STATIC GUID *mExtractHandlerGuidTable;
|
STATIC GUID *mExtractHandlerGuidTable;
|
||||||
STATIC UINT32 mNumberOfExtractHandler;
|
STATIC UINT32 mNumberOfExtractHandler;
|
||||||
@ -109,6 +110,13 @@ ExtractGuidedSectionRegisterHandlers (
|
|||||||
IN EXTRACT_GUIDED_SECTION_DECODE_HANDLER DecodeHandler
|
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.
|
// Check input paramter.
|
||||||
//
|
//
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
MemoryAllocationLib
|
MemoryAllocationLib
|
||||||
BaseMemoryLib
|
BaseMemoryLib
|
||||||
DebugLib
|
DebugLib
|
||||||
|
HobLib
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler
|
gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler
|
||||||
|
Reference in New Issue
Block a user