mirror of https://github.com/acidanthera/audk.git
MdeModulePkg-DxeCore: rename CoreGetMemoryMapPropertiesTable
This patches rename CoreGetMemoryMapPropertiesTable to CoreGetMemoryMapWithSeparatedImageSection. The reason is that CoreGetMemoryMapPropertiesTable is called by MemoryAttributesTable.c to get separated PE image section information. It is confusing to use *PropertiesTable, because it is NOT related to PropertiesTable.c We rename it to avoid confusing. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
053d95e7e5
commit
0ab90add0f
|
@ -62,7 +62,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
CoreGetMemoryMapPropertiesTable (
|
||||
CoreGetMemoryMapWithSeparatedImageSection (
|
||||
IN OUT UINTN *MemoryMapSize,
|
||||
IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
|
||||
OUT UINTN *MapKey,
|
||||
|
@ -120,7 +120,7 @@ InstallMemoryAttributesTable (
|
|||
|
||||
MemoryMapSize = 0;
|
||||
MemoryMap = NULL;
|
||||
Status = CoreGetMemoryMapPropertiesTable (
|
||||
Status = CoreGetMemoryMapWithSeparatedImageSection (
|
||||
&MemoryMapSize,
|
||||
MemoryMap,
|
||||
&MapKey,
|
||||
|
@ -133,7 +133,7 @@ InstallMemoryAttributesTable (
|
|||
MemoryMap = AllocatePool (MemoryMapSize);
|
||||
ASSERT (MemoryMap != NULL);
|
||||
|
||||
Status = CoreGetMemoryMapPropertiesTable (
|
||||
Status = CoreGetMemoryMapWithSeparatedImageSection (
|
||||
&MemoryMapSize,
|
||||
MemoryMap,
|
||||
&MapKey,
|
||||
|
|
|
@ -758,7 +758,7 @@ SplitTable (
|
|||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
CoreGetMemoryMapPropertiesTable (
|
||||
CoreGetMemoryMapWithSeparatedImageSection (
|
||||
IN OUT UINTN *MemoryMapSize,
|
||||
IN OUT EFI_MEMORY_DESCRIPTOR *MemoryMap,
|
||||
OUT UINTN *MapKey,
|
||||
|
@ -1364,7 +1364,7 @@ InstallPropertiesTable (
|
|||
return ;
|
||||
}
|
||||
|
||||
gBS->GetMemoryMap = CoreGetMemoryMapPropertiesTable;
|
||||
gBS->GetMemoryMap = CoreGetMemoryMapWithSeparatedImageSection;
|
||||
gBS->Hdr.CRC32 = 0;
|
||||
gBS->CalculateCrc32 ((UINT8 *)gBS, gBS->Hdr.HeaderSize, &gBS->Hdr.CRC32);
|
||||
|
||||
|
|
Loading…
Reference in New Issue