31 VOID *TranslationTableBase;
32 UINTN TranslationTableSize;
40 Status = ArmConfigureMmu (MemoryTable, &TranslationTableBase, &TranslationTableSize);
41 if (EFI_ERROR (Status)) {
42 DEBUG ((DEBUG_ERROR,
"Error: Failed to enable MMU\n"));
50 IN UINT64 UefiMemorySize
54 UINT64 SystemMemoryTop;
55 UINT64 SystemMemorySize;
59 ASSERT (
PcdGet64 (PcdSystemMemorySize) != 0);
61 SystemMemorySize =
PcdGet64 (PcdSystemMemorySize);
65 SystemMemorySize = *(UINT64 *)GET_GUID_HOB_DATA (Hob);
71 ResourceAttributes = (
72 EFI_RESOURCE_ATTRIBUTE_PRESENT |
73 EFI_RESOURCE_ATTRIBUTE_INITIALIZED |
74 EFI_RESOURCE_ATTRIBUTE_WRITE_BACK_CACHEABLE |
75 EFI_RESOURCE_ATTRIBUTE_TESTED
78 SystemMemoryTop =
PcdGet64 (PcdSystemMemoryBase) + SystemMemorySize;
82 EFI_RESOURCE_SYSTEM_MEMORY,
88 EFI_RESOURCE_SYSTEM_MEMORY,
95 EFI_RESOURCE_SYSTEM_MEMORY,
105 if (
FeaturePcdGet (PcdPrePiProduceMemoryTypeInformationHob)) {
#define MAX_ALLOC_ADDRESS
VOID EFIAPI ArmVirtGetMemoryMap(OUT ARM_MEMORY_REGION_DESCRIPTOR **VirtualMemoryMap)
VOID BuildMemoryTypeInformationHob(VOID)
EFI_STATUS EFIAPI MemoryPeim(IN EFI_PHYSICAL_ADDRESS UefiMemoryBase, IN UINT64 UefiMemorySize)
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
VOID EFIAPI BuildResourceDescriptorHob(IN EFI_RESOURCE_TYPE ResourceType, IN EFI_RESOURCE_ATTRIBUTE_TYPE ResourceAttribute, IN EFI_PHYSICAL_ADDRESS PhysicalStart, IN UINT64 NumberOfBytes)
#define DEBUG(Expression)
#define PcdGet64(TokenName)
#define FeaturePcdGet(TokenName)
UINT32 EFI_RESOURCE_ATTRIBUTE_TYPE
UINT64 EFI_PHYSICAL_ADDRESS