//\r
UINTN mTimes = 0;\r
\r
+UINT32 mMaxSizePopulateCapsule = 0;\r
+UINT32 mMaxSizeNonPopulateCapsule = 0;\r
+\r
/**\r
Create the variable to save the base address of page table and stack\r
for transferring into long mode in IA32 PEI.\r
return EFI_UNSUPPORTED;\r
}\r
*ResetType = EfiResetWarm;\r
- *MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizePopulateCapsule);\r
+ *MaxiumCapsuleSize = (UINT64) mMaxSizePopulateCapsule;\r
} else {\r
//\r
// For non-reset capsule image.\r
//\r
*ResetType = EfiResetCold;\r
- *MaxiumCapsuleSize = FixedPcdGet32(PcdMaxSizeNonPopulateCapsule);\r
+ *MaxiumCapsuleSize = (UINT64) mMaxSizeNonPopulateCapsule;\r
}\r
\r
return EFI_SUCCESS;\r
)\r
{\r
EFI_STATUS Status;\r
- \r
+\r
+ mMaxSizePopulateCapsule = PcdGet32(PcdMaxSizePopulateCapsule);\r
+ mMaxSizeNonPopulateCapsule = PcdGet32(PcdMaxSizeNonPopulateCapsule);\r
+\r
//\r
// When PEI phase is IA32, DXE phase is X64, it is possible that capsule data are \r
// put above 4GB, so capsule PEI will transfer to long mode to get capsule data.\r