- //\r
- // Normal boot - build Hob for SEC performance data.\r
- //\r
- Status = PeiServicesLocatePpi (\r
- &gPeiSecPerformancePpiGuid,\r
- 0,\r
- NULL,\r
- (VOID **) &SecPerf\r
- );\r
- if (!EFI_ERROR (Status)) {\r
- Status = SecPerf->GetPerformance (PeiServices, SecPerf, &Performance);\r
- }\r
- if (!EFI_ERROR (Status)) {\r
- BuildGuidDataHob (\r
- &gEfiFirmwarePerformanceGuid,\r
- &Performance,\r
- sizeof (FIRMWARE_SEC_PERFORMANCE)\r
- );\r
- DEBUG ((EFI_D_INFO, "FPDT: SEC Performance Hob ResetEnd = %ld\n", Performance.ResetEnd));\r
- } else {\r
- //\r
- // SEC performance PPI is not installed or fail to get performance data\r
- // from SEC Performance PPI.\r
- //\r
- DEBUG ((EFI_D_ERROR, "FPDT: WARNING: SEC Performance PPI not installed or failed!\n"));\r
- }\r
-\r