X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPei%2FDispatcher%2FDispatcher.c;fp=MdeModulePkg%2FCore%2FPei%2FDispatcher%2FDispatcher.c;h=467066a0bf1beb3f5914d32eec6468932fe2d833;hp=38299c5d98c653042af5cb27a42739e394e8886c;hb=981270718656912c0d13fe02f562fe562206be31;hpb=eb3abca30855c5ec0698585e2c1f64f7853fc36e diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index 38299c5d98..467066a0bf 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -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));