Home
last modified time | relevance | path

Searched refs:MemoryRegion (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/ArmV7/
DArmV7Mmu.c181 IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryRegion in FillTranslationTable() argument
189 ASSERT(MemoryRegion->Length > 0); in FillTranslationTable()
191 if (MemoryRegion->PhysicalBase >= SIZE_4GB) { in FillTranslationTable()
195 PhysicalBase = MemoryRegion->PhysicalBase; in FillTranslationTable()
196 RemainLength = MIN(MemoryRegion->Length, SIZE_4GB - PhysicalBase); in FillTranslationTable()
198 switch (MemoryRegion->Attributes) { in FillTranslationTable()
233 …SectionEntry = TRANSLATION_TABLE_ENTRY_FOR_VIRTUAL_ADDRESS(TranslationTable, MemoryRegion->Virt… in FillTranslationTable()
243 … PopulateLevel2PageTable (SectionEntry++, PhysicalBase, RemainLength, MemoryRegion->Attributes); in FillTranslationTable()
250 … PopulateLevel2PageTable (SectionEntry++, PhysicalBase, RemainLength, MemoryRegion->Attributes); in FillTranslationTable()
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/AArch64/
DAArch64Mmu.c433 IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryRegion in FillTranslationTable() argument
438 MemoryRegion->VirtualBase, in FillTranslationTable()
439 MemoryRegion->Length, in FillTranslationTable()
440 ArmMemoryAttributeToPageAttribute (MemoryRegion->Attributes) | TT_AF, in FillTranslationTable()
454 ARM_MEMORY_REGION_DESCRIPTOR MemoryRegion; in SetMemoryAttributes() local
457 MemoryRegion.PhysicalBase = BaseAddress; in SetMemoryAttributes()
458 MemoryRegion.VirtualBase = BaseAddress; in SetMemoryAttributes()
459 MemoryRegion.Length = Length; in SetMemoryAttributes()
460 MemoryRegion.Attributes = GcdAttributeToArmAttribute (Attributes); in SetMemoryAttributes()
464 Status = FillTranslationTable (TranslationTable, &MemoryRegion); in SetMemoryAttributes()