// PEI Performance HOB was not found, then build one.\r
//\r
PeiPerformanceLogSize = sizeof (PEI_PERFORMANCE_LOG_HEADER) + \r
- sizeof (PEI_PERFORMANCE_LOG_ENTRY) * MAX_PEI_PERFORMANCE_LOG_ENTRIES;\r
+ sizeof (PEI_PERFORMANCE_LOG_ENTRY) * PcdGet8 (PcdMaxPeiPerformanceLogEntries);\r
PeiPerformanceLog = BuildGuidHob (&gPeiPerformanceHobGuid, PeiPerformanceLogSize);\r
PeiPerformanceLog = ZeroMem (PeiPerformanceLog, PeiPerformanceLogSize);\r
}\r
\r
PeiPerformanceLog = InternalGetPerformanceHobLog ();\r
\r
- if (PeiPerformanceLog->NumberOfEntries >= MAX_PEI_PERFORMANCE_LOG_ENTRIES) {\r
+ if (PeiPerformanceLog->NumberOfEntries >= PcdGet8 (PcdMaxPeiPerformanceLogEntries)) {\r
return RETURN_OUT_OF_RESOURCES;\r
}\r
Index = PeiPerformanceLog->NumberOfEntries++;\r