/** @file\r
DXE Core Main Entry Point\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. <BR>\r
All rights reserved. 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
\r
//\r
+// For Loading modules at fixed address feature, the configuration table is to cache the top address below which to load \r
+// Runtime code&boot time code \r
+//\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_LOAD_FIXED_ADDRESS_CONFIGURATION_TABLE gLoadModuleAtFixAddressConfigurationTable = {0, 0};\r
+\r
// Main entry point to the DXE Core\r
//\r
\r
//\r
Status = CoreInstallConfigurationTable (&gEfiMemoryTypeInformationGuid, &gMemoryTypeInformation);\r
ASSERT_EFI_ERROR (Status);\r
-\r
+ \r
+ //\r
+ // If Loading modules At fixed address feature is enabled, install Load moduels at fixed address \r
+ // Configuration Table so that user could easily to retrieve the top address to load Dxe and PEI\r
+ // Code and Tseg base to load SMM driver. \r
+ //\r
+ if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0) {\r
+ Status = CoreInstallConfigurationTable (&gLoadFixedAddressConfigurationTableGuid, &gLoadModuleAtFixAddressConfigurationTable);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
//\r
// Report Status Code here for DXE_ENTRY_POINT once it is available\r
//\r
REPORT_STATUS_CODE (\r
EFI_PROGRESS_CODE,\r
- FixedPcdGet32(PcdStatusCodeValueDxeCoreEntry)\r
+ (EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_PC_ENTRY_POINT)\r
);\r
\r
//\r
for (Hob.Raw = HobStart; !END_OF_HOB_LIST(Hob); Hob.Raw = GET_NEXT_HOB(Hob)) {\r
if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_MEMORY_ALLOCATION) {\r
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Memory Allocation %08x %0lx - %0lx\n", \\r
+ Hob.MemoryAllocation->AllocDescriptor.MemoryType, \\r
Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress, \\r
- Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress + Hob.MemoryAllocation->AllocDescriptor.MemoryLength - 1, \\r
- Hob.MemoryAllocation->AllocDescriptor.MemoryType));\r
+ Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress + Hob.MemoryAllocation->AllocDescriptor.MemoryLength - 1));\r
}\r
}\r
for (Hob.Raw = HobStart; !END_OF_HOB_LIST(Hob); Hob.Raw = GET_NEXT_HOB(Hob)) {\r
//\r
REPORT_STATUS_CODE (\r
EFI_PROGRESS_CODE,\r
- FixedPcdGet32 (PcdStatusCodeValueDxeCoreHandoffToBds)\r
+ (EFI_SOFTWARE_DXE_CORE | EFI_SW_DXE_CORE_PC_HANDOFF_TO_NEXT)\r
);\r
\r
//\r
//\r
REPORT_STATUS_CODE (\r
EFI_PROGRESS_CODE,\r
- FixedPcdGet32 (PcdStatusCodeValueBootServiceExit)\r
+ (EFI_SOFTWARE_EFI_BOOT_SERVICE | EFI_SW_BS_PC_EXIT_BOOT_SERVICES)\r
);\r
\r
//\r