mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Update PeiCore consumes PCD to get the init value in temp stack
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
eb3abca308
commit
9812707186
|
@ -15,11 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
|
||||
#include "PeiMain.h"
|
||||
|
||||
///
|
||||
/// temporary memory is filled with this initial value during SEC phase
|
||||
///
|
||||
#define INIT_CAR_VALUE 0x5AA55AA5
|
||||
|
||||
/**
|
||||
|
||||
Discover all Peims and optional Apriori file in one FV. There is at most one
|
||||
|
@ -680,7 +675,7 @@ PeiCheckAndSwitchStack (
|
|||
|
||||
for (StackPointer = (UINT32*)SecCoreData->StackBase;
|
||||
(StackPointer < (UINT32*)((UINTN)SecCoreData->StackBase + SecCoreData->StackSize)) \
|
||||
&& (*StackPointer == INIT_CAR_VALUE);
|
||||
&& (*StackPointer == PcdGet32 (PcdInitValueInTempStack));
|
||||
StackPointer ++);
|
||||
|
||||
DEBUG ((DEBUG_INFO, "Temp Stack : BaseAddress=0x%p Length=0x%X\n", SecCoreData->StackBase, (UINT32)SecCoreData->StackSize));
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnS3Boot ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot ## CONSUMES
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack ## CONSUMES
|
||||
|
||||
# [BootMode]
|
||||
# S3_RESUME ## SOMETIMES_CONSUMES
|
||||
|
|
Loading…
Reference in New Issue