// Call constructor for all libraries\r
//\r
ProcessLibraryConstructorList (gDxeCoreImageHandle, gDxeCoreST);\r
- PERF_END (0,PEI_TOK, NULL, 0) ;\r
- PERF_START (0,DXE_TOK, NULL, 0) ;\r
+ PERF_END (0,"PEI", NULL, 0) ;\r
+ PERF_START (0,"DXE", NULL, 0) ;\r
\r
//\r
// Initialize the Global Coherency Domain Services\r
)\r
{\r
EFI_STATUS Status;\r
- EFI_STATUS StatusTemp;\r
- EFI_TCG_PLATFORM_PROTOCOL *TcgPlatformProtocol;\r
-\r
- //\r
- // Measure invocation of ExitBootServices,\r
- // which is defined by TCG_EFI_Platform_1_20_Final Specification\r
- //\r
- TcgPlatformProtocol = NULL;\r
- Status = CoreLocateProtocol (\r
- &gEfiTcgPlatformProtocolGuid,\r
- NULL,\r
- (VOID **) &TcgPlatformProtocol\r
- );\r
- if (!EFI_ERROR (Status)) {\r
- Status = TcgPlatformProtocol->MeasureAction (EFI_EXIT_BOOT_SERVICES_INVOCATION);\r
- ASSERT_EFI_ERROR (Status);\r
- }\r
\r
//\r
// Terminate memory services if the MapKey matches\r
//\r
Status = CoreTerminateMemoryMap (MapKey);\r
if (EFI_ERROR (Status)) {\r
- //\r
- // Measure failure of ExitBootServices\r
- //\r
- if (TcgPlatformProtocol != NULL) {\r
- StatusTemp = TcgPlatformProtocol->MeasureAction (EFI_EXIT_BOOT_SERVICES_FAILED);\r
- ASSERT_EFI_ERROR (StatusTemp);\r
- }\r
-\r
return Status;\r
}\r
\r
//\r
- // Notify other drivers that we are exiting boot services.\r
+ // Disable Timer\r
//\r
- CoreNotifySignalList (&gEfiEventExitBootServicesGuid);\r
+ gTimer->SetTimerPeriod (gTimer, 0);\r
\r
//\r
- // Disable Timer\r
+ // Notify other drivers that we are exiting boot services.\r
//\r
- gTimer->SetTimerPeriod (gTimer, 0);\r
+ CoreNotifySignalList (&gEfiEventExitBootServicesGuid);\r
\r
//\r
// Disable CPU Interrupts\r
//\r
gRuntime->AtRuntime = TRUE;\r
\r
- //\r
- // Measure success of ExitBootServices\r
- //\r
- if (TcgPlatformProtocol != NULL) {\r
- StatusTemp = TcgPlatformProtocol->MeasureAction (EFI_EXIT_BOOT_SERVICES_SUCCEEDED);\r
- ASSERT_EFI_ERROR (StatusTemp);\r
- }\r
-\r
return Status;\r
}\r
\r