/** @file\r
DXE Core Main Entry Point\r
\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, 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
(EFI_SCHEDULE) CoreSchedule, // Schedule\r
(EFI_TRUST) CoreTrust, // Trust\r
(EFI_PROCESS_FIRMWARE_VOLUME) CoreProcessFirmwareVolume, // ProcessFirmwareVolume\r
+ (EFI_SET_MEMORY_SPACE_CAPABILITIES)CoreSetMemorySpaceCapabilities, // SetMemorySpaceCapabilities\r
};\r
\r
EFI_SYSTEM_TABLE mEfiSystemTableTemplate = {\r
//\r
CoreInitializeMemoryServices (&HobStart, &MemoryBaseAddress, &MemoryLength);\r
\r
+ MemoryProfileInit (HobStart);\r
+\r
//\r
// Allocate the EFI System Table and EFI Runtime Service Table from EfiRuntimeServicesData\r
// Use the templates to initialize the contents of the EFI System Table and EFI Runtime Services Table\r
Status = CoreInitializeImageServices (HobStart);\r
ASSERT_EFI_ERROR (Status);\r
\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
-\r
//\r
// Report DXE Core image information to the PE/COFF Extra Action Library\r
//\r
+ ZeroMem (&ImageContext, sizeof (ImageContext));\r
ImageContext.ImageAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)gDxeCoreLoadedImage->ImageBase;\r
- ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);\r
+ ImageContext.PdbPointer = PeCoffLoaderGetPdbPointer ((VOID*) (UINTN) ImageContext.ImageAddress);\r
PeCoffLoaderRelocateImageExtraAction (&ImageContext);\r
\r
//\r
Status = CoreInitializeGcdServices (&HobStart, MemoryBaseAddress, MemoryLength);\r
ASSERT_EFI_ERROR (Status);\r
\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
+\r
//\r
// Install the DXE Services Table into the EFI System Tables's Configuration Table\r
//\r
if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV2) {\r
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "FV2 Hob 0x%0lx - 0x%0lx\n", Hob.FirmwareVolume2->BaseAddress, Hob.FirmwareVolume2->BaseAddress + Hob.FirmwareVolume2->Length - 1));\r
} else if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV) {\r
- DEBUG ((DEBUG_INFO | DEBUG_LOAD, "FV Hob 0x%0lx - 0x%0lx\n", Hob.FirmwareVolume->BaseAddress, Hob.FirmwareVolume->BaseAddress + Hob.FirmwareVolume2->Length - 1));\r
+ DEBUG ((DEBUG_INFO | DEBUG_LOAD, "FV Hob 0x%0lx - 0x%0lx\n", Hob.FirmwareVolume->BaseAddress, Hob.FirmwareVolume->BaseAddress + Hob.FirmwareVolume->Length - 1));\r
}\r
}\r
DEBUG_CODE_END ();\r
Status = CoreInitializeEventServices ();\r
ASSERT_EFI_ERROR (Status);\r
\r
+ MemoryProfileInstallProtocol ();\r
+\r
+ CoreInitializePropertiesTable ();\r
+ CoreInitializeMemoryAttributesTable ();\r
+\r
//\r
// Get persisted vector hand-off info from GUIDeed HOB again due to HobStart may be updated,\r
// and install configuration table\r