/** @file\r
DXE Core Main Entry Point\r
\r
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
}\r
Status = InitializeCpuExceptionHandlersEx (VectorInfoList, NULL);\r
ASSERT_EFI_ERROR (Status);\r
- \r
+\r
//\r
// Initialize Debug Agent to support source level debug in DXE phase\r
//\r
// Call constructor for all libraries\r
//\r
ProcessLibraryConstructorList (gDxeCoreImageHandle, gDxeCoreST);\r
- PERF_END (NULL,"PEI", NULL, 0) ;\r
- PERF_START (NULL,"DXE", NULL, 0) ;\r
+ PERF_CROSSMODULE_END ("PEI");\r
+ PERF_CROSSMODULE_BEGIN ("DXE");\r
\r
//\r
// Report DXE Core image information to the PE/COFF Extra Action Library\r
//\r
// Initialize the DXE Dispatcher\r
//\r
- PERF_START (NULL,"CoreInitializeDispatcher", "DxeMain", 0) ;\r
CoreInitializeDispatcher ();\r
- PERF_END (NULL,"CoreInitializeDispatcher", "DxeMain", 0) ;\r
\r
//\r
// Invoke the DXE Dispatcher\r
//\r
- PERF_START (NULL, "CoreDispatcher", "DxeMain", 0);\r
CoreDispatcher ();\r
- PERF_END (NULL, "CoreDispatcher", "DxeMain", 0);\r
\r
//\r
// Display Architectural protocols that were not loaded if this is DEBUG build\r
REPORT_STATUS_CODE (\r
EFI_ERROR_CODE | EFI_ERROR_MAJOR,\r
(EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_EC_NO_ARCH)\r
- ); \r
+ );\r
}\r
ASSERT_EFI_ERROR (Status);\r
\r
Status = CoreTerminateMemoryMap (MapKey);\r
if (EFI_ERROR (Status)) {\r
//\r
- // Notify other drivers that ExitBootServices fail \r
+ // Notify other drivers that ExitBootServices fail\r
//\r
CoreNotifySignalList (&gEventExitBootServicesFailedGuid);\r
return Status;\r
(EFI_SOFTWARE_EFI_BOOT_SERVICE | EFI_SW_BS_PC_EXIT_BOOT_SERVICES)\r
);\r
\r
+ MemoryProtectionExitBootServicesCallback();\r
+\r
//\r
// Disable interrupt of Debug timer.\r
//\r
//\r
gCpu->DisableInterrupt (gCpu);\r
\r
- MemoryProtectionExitBootServicesCallback();\r
-\r
//\r
// Clear the non-runtime values of the EFI System Table\r
//\r