ArmPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ArmV7Mmu.h File Reference

Macros

#define TTBR_NOT_OUTER_SHAREABLE   BIT5
 
#define TTBR_RGN_OUTER_NON_CACHEABLE   0
 
#define TTBR_RGN_OUTER_WRITE_BACK_ALLOC   BIT3
 
#define TTBR_RGN_OUTER_WRITE_THROUGH   BIT4
 
#define TTBR_RGN_OUTER_WRITE_BACK_NO_ALLOC   (BIT3|BIT4)
 
#define TTBR_SHAREABLE   BIT1
 
#define TTBR_NON_SHAREABLE   0
 
#define TTBR_INNER_CACHEABLE   BIT0
 
#define TTBR_INNER_NON_CACHEABLE   0
 
#define TTBR_RGN_INNER_NON_CACHEABLE   0
 
#define TTBR_RGN_INNER_WRITE_BACK_ALLOC   BIT6
 
#define TTBR_RGN_INNER_WRITE_THROUGH   BIT0
 
#define TTBR_RGN_INNER_WRITE_BACK_NO_ALLOC   (BIT0|BIT6)
 
#define TTBR_WRITE_THROUGH   ( TTBR_RGN_OUTER_WRITE_THROUGH | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)
 
#define TTBR_WRITE_BACK_NO_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_NO_ALLOC | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)
 
#define TTBR_NON_CACHEABLE   ( TTBR_RGN_OUTER_NON_CACHEABLE | TTBR_INNER_NON_CACHEABLE )
 
#define TTBR_WRITE_BACK_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_ALLOC | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)
 
#define TTBR_MP_WRITE_THROUGH   ( TTBR_RGN_OUTER_WRITE_THROUGH | TTBR_RGN_INNER_WRITE_THROUGH | TTBR_SHAREABLE)
 
#define TTBR_MP_WRITE_BACK_NO_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_NO_ALLOC | TTBR_RGN_INNER_WRITE_BACK_NO_ALLOC | TTBR_SHAREABLE)
 
#define TTBR_MP_NON_CACHEABLE   ( TTBR_RGN_OUTER_NON_CACHEABLE | TTBR_RGN_INNER_NON_CACHEABLE )
 
#define TTBR_MP_WRITE_BACK_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_ALLOC | TTBR_RGN_INNER_WRITE_BACK_ALLOC | TTBR_SHAREABLE)
 
#define TRANSLATION_TABLE_SECTION_COUNT   4096
 
#define TRANSLATION_TABLE_SECTION_SIZE   (sizeof(UINT32) * TRANSLATION_TABLE_SECTION_COUNT)
 
#define TRANSLATION_TABLE_SECTION_ALIGNMENT   (sizeof(UINT32) * TRANSLATION_TABLE_SECTION_COUNT)
 
#define TRANSLATION_TABLE_SECTION_ALIGNMENT_MASK   (TRANSLATION_TABLE_SECTION_ALIGNMENT - 1)
 
#define TRANSLATION_TABLE_PAGE_COUNT   256
 
#define TRANSLATION_TABLE_PAGE_SIZE   (sizeof(UINT32) * TRANSLATION_TABLE_PAGE_COUNT)
 
#define TRANSLATION_TABLE_PAGE_ALIGNMENT   (sizeof(UINT32) * TRANSLATION_TABLE_PAGE_COUNT)
 
#define TRANSLATION_TABLE_PAGE_ALIGNMENT_MASK   (TRANSLATION_TABLE_PAGE_ALIGNMENT - 1)
 
#define TRANSLATION_TABLE_ENTRY_FOR_VIRTUAL_ADDRESS(table, address)   ((UINT32 *)(table) + (((UINTN)(address)) >> 20))
 
#define TT_DESCRIPTOR_SECTION_TYPE_MASK   ((1UL << 18) | (3UL << 0))
 
#define TT_DESCRIPTOR_SECTION_TYPE_FAULT   (0UL << 0)
 
#define TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE   (1UL << 0)
 
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION   ((0UL << 18) | (2UL << 0))
 
#define TT_DESCRIPTOR_SECTION_TYPE_SUPERSECTION   ((1UL << 18) | (2UL << 0))
 
#define TT_DESCRIPTOR_SECTION_TYPE_IS_PAGE_TABLE(Desc)   (((Desc) & 3UL) == TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE)
 
#define TT_DESCRIPTOR_PAGE_TYPE_MASK   (3UL << 0)
 
#define TT_DESCRIPTOR_PAGE_TYPE_FAULT   (0UL << 0)
 
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE   (2UL << 0)
 
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE_XN   (3UL << 0)
 
#define TT_DESCRIPTOR_PAGE_TYPE_LARGEPAGE   (1UL << 0)
 
#define TT_DESCRIPTOR_SECTION_SIZE   (0x00100000)
 
#define TT_DESCRIPTOR_SECTION_NS_MASK   (1UL << 19)
 
#define TT_DESCRIPTOR_SECTION_NS   (1UL << 19)
 
#define TT_DESCRIPTOR_SECTION_NG_MASK   (1UL << 17)
 
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL   (0UL << 17)
 
#define TT_DESCRIPTOR_SECTION_NG_LOCAL   (1UL << 17)
 
#define TT_DESCRIPTOR_PAGE_NG_MASK   (1UL << 11)
 
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL   (0UL << 11)
 
#define TT_DESCRIPTOR_PAGE_NG_LOCAL   (1UL << 11)
 
#define TT_DESCRIPTOR_SECTION_S_MASK   (1UL << 16)
 
#define TT_DESCRIPTOR_SECTION_S_NOT_SHARED   (0UL << 16)
 
#define TT_DESCRIPTOR_SECTION_S_SHARED   (1UL << 16)
 
#define TT_DESCRIPTOR_PAGE_S_MASK   (1UL << 10)
 
#define TT_DESCRIPTOR_PAGE_S_NOT_SHARED   (0UL << 10)
 
#define TT_DESCRIPTOR_PAGE_S_SHARED   (1UL << 10)
 
#define TT_DESCRIPTOR_SECTION_AP_MASK   ((1UL << 15) | (3UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_NO_NO   ((0UL << 15) | (0UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_RW_NO   ((0UL << 15) | (1UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_RW_RO   ((0UL << 15) | (2UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_RW_RW   ((0UL << 15) | (3UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_RO_NO   ((1UL << 15) | (1UL << 10))
 
#define TT_DESCRIPTOR_SECTION_AP_RO_RO   ((1UL << 15) | (3UL << 10))
 
#define TT_DESCRIPTOR_PAGE_AP_MASK   ((1UL << 9) | (3UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_NO_NO   ((0UL << 9) | (0UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_RW_NO   ((0UL << 9) | (1UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_RW_RO   ((0UL << 9) | (2UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_RW_RW   ((0UL << 9) | (3UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_RO_NO   ((1UL << 9) | (1UL << 4))
 
#define TT_DESCRIPTOR_PAGE_AP_RO_RO   ((1UL << 9) | (3UL << 4))
 
#define TT_DESCRIPTOR_SECTION_XN_MASK   (0x1UL << 4)
 
#define TT_DESCRIPTOR_PAGE_XN_MASK   (0x1UL << 0)
 
#define TT_DESCRIPTOR_LARGEPAGE_XN_MASK   (0x1UL << 15)
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_MASK   ((3UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHEABLE_MASK   (1UL << 3)
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 12) | (0UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_NON_CACHEABLE   ((1UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_PAGE_SIZE   (0x00001000)
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_MASK   ((3UL << 6) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHEABLE_MASK   (1UL << 3)
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 6) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 6) | (0UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 6) | (1UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 6) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_NON_CACHEABLE   ((1UL << 6) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 6) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 6) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK   ((3UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 12) | (0UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_NON_CACHEABLE   ((1UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 12) | (1UL << 3) | (1UL << 2))
 
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 12) | (0UL << 3) | (0UL << 2))
 
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_AP(Desc)   ((((Desc) & TT_DESCRIPTOR_SECTION_AP_MASK) >> 6) & TT_DESCRIPTOR_PAGE_AP_MASK)
 
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_NG(Desc)   ((((Desc) & TT_DESCRIPTOR_SECTION_NG_MASK) >> 6) & TT_DESCRIPTOR_PAGE_NG_MASK)
 
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_S(Desc)   ((((Desc) & TT_DESCRIPTOR_SECTION_S_MASK) >> 6) & TT_DESCRIPTOR_PAGE_S_MASK)
 
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_XN(Desc, IsLargePage)
 
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_CACHE_POLICY(Desc, IsLargePage)
 
#define TT_DESCRIPTOR_CONVERT_TO_SECTION_AP(Desc)   ((((Desc) & TT_DESCRIPTOR_PAGE_AP_MASK) << 6) & TT_DESCRIPTOR_SECTION_AP_MASK)
 
#define TT_DESCRIPTOR_CONVERT_TO_SECTION_CACHE_POLICY(Desc, IsLargePage)
 
#define TT_DESCRIPTOR_SECTION_ATTRIBUTE_MASK
 
#define TT_DESCRIPTOR_PAGE_ATTRIBUTE_MASK
 
#define TT_DESCRIPTOR_SECTION_DOMAIN_MASK   (0x0FUL << 5)
 
#define TT_DESCRIPTOR_SECTION_DOMAIN(a)   (((a) & 0x0FUL) << 5)
 
#define TT_DESCRIPTOR_SECTION_BASE_ADDRESS_MASK   (0xFFF00000)
 
#define TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK   (0xFFFFFC00)
 
#define TT_DESCRIPTOR_SECTION_BASE_ADDRESS(a)   ((a) & TT_DESCRIPTOR_SECTION_BASE_ADDRESS_MASK)
 
#define TT_DESCRIPTOR_SECTION_BASE_SHIFT   20
 
#define TT_DESCRIPTOR_PAGE_BASE_ADDRESS_MASK   (0xFFFFF000)
 
#define TT_DESCRIPTOR_PAGE_INDEX_MASK   (0x000FF000)
 
#define TT_DESCRIPTOR_PAGE_BASE_ADDRESS(a)   ((a) & TT_DESCRIPTOR_PAGE_BASE_ADDRESS_MASK)
 
#define TT_DESCRIPTOR_PAGE_BASE_SHIFT   12
 
#define TT_DESCRIPTOR_SECTION_WRITE_BACK(NonSecure)
 
#define TT_DESCRIPTOR_SECTION_WRITE_THROUGH(NonSecure)
 
#define TT_DESCRIPTOR_SECTION_DEVICE(NonSecure)
 
#define TT_DESCRIPTOR_SECTION_UNCACHED(NonSecure)
 
#define TT_DESCRIPTOR_PAGE_WRITE_BACK
 
#define TT_DESCRIPTOR_PAGE_WRITE_THROUGH
 
#define TT_DESCRIPTOR_PAGE_DEVICE
 
#define TT_DESCRIPTOR_PAGE_UNCACHED
 

Typedefs

typedef UINT32 ARM_FIRST_LEVEL_DESCRIPTOR
 
typedef UINT32 ARM_PAGE_TABLE_ENTRY
 

Functions

UINT32 ConvertSectionAttributesToPageAttributes (IN UINT32 SectionAttributes, IN BOOLEAN IsLargePage)
 

Detailed Description

Copyright (c) 2011-2013, ARM Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define TRANSLATION_TABLE_ENTRY_FOR_VIRTUAL_ADDRESS (   table,
  address 
)    ((UINT32 *)(table) + (((UINTN)(address)) >> 20))
#define TRANSLATION_TABLE_PAGE_ALIGNMENT   (sizeof(UINT32) * TRANSLATION_TABLE_PAGE_COUNT)
#define TRANSLATION_TABLE_PAGE_ALIGNMENT_MASK   (TRANSLATION_TABLE_PAGE_ALIGNMENT - 1)
#define TRANSLATION_TABLE_PAGE_COUNT   256
#define TRANSLATION_TABLE_PAGE_SIZE   (sizeof(UINT32) * TRANSLATION_TABLE_PAGE_COUNT)
#define TRANSLATION_TABLE_SECTION_ALIGNMENT   (sizeof(UINT32) * TRANSLATION_TABLE_SECTION_COUNT)
#define TRANSLATION_TABLE_SECTION_ALIGNMENT_MASK   (TRANSLATION_TABLE_SECTION_ALIGNMENT - 1)
#define TRANSLATION_TABLE_SECTION_COUNT   4096
#define TRANSLATION_TABLE_SECTION_SIZE   (sizeof(UINT32) * TRANSLATION_TABLE_SECTION_COUNT)
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_AP (   Desc)    ((((Desc) & TT_DESCRIPTOR_SECTION_AP_MASK) >> 6) & TT_DESCRIPTOR_PAGE_AP_MASK)
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_CACHE_POLICY (   Desc,
  IsLargePage 
)
Value:
(IsLargePage? \
(((((Desc) & (0x3 << 12)) >> 6) | (Desc & (0x3 << 2)))))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:128
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:106
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_NG (   Desc)    ((((Desc) & TT_DESCRIPTOR_SECTION_NG_MASK) >> 6) & TT_DESCRIPTOR_PAGE_NG_MASK)
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_S (   Desc)    ((((Desc) & TT_DESCRIPTOR_SECTION_S_MASK) >> 6) & TT_DESCRIPTOR_PAGE_S_MASK)
#define TT_DESCRIPTOR_CONVERT_TO_PAGE_XN (   Desc,
  IsLargePage 
)
Value:
((IsLargePage)? \
((((Desc) & TT_DESCRIPTOR_SECTION_XN_MASK) >> 4) & TT_DESCRIPTOR_PAGE_XN_MASK))
#define TT_DESCRIPTOR_PAGE_XN_MASK
Definition: ArmV7Mmu.h:103
#define TT_DESCRIPTOR_LARGEPAGE_XN_MASK
Definition: ArmV7Mmu.h:104
#define TT_DESCRIPTOR_SECTION_XN_MASK
Definition: ArmV7Mmu.h:102
#define TT_DESCRIPTOR_CONVERT_TO_SECTION_AP (   Desc)    ((((Desc) & TT_DESCRIPTOR_PAGE_AP_MASK) << 6) & TT_DESCRIPTOR_SECTION_AP_MASK)
#define TT_DESCRIPTOR_CONVERT_TO_SECTION_CACHE_POLICY (   Desc,
  IsLargePage 
)
Value:
(IsLargePage? \
(((((Desc) & (0x3 << 6)) << 6) | (Desc & (0x3 << 2)))))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:128
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:106
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_MASK   ((3UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_NON_CACHEABLE   ((1UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 12) | (0UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_LARGEPAGE_XN_MASK   (0x1UL << 15)
#define TT_DESCRIPTOR_PAGE_AP_MASK   ((1UL << 9) | (3UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_NO_NO   ((0UL << 9) | (0UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_RO_NO   ((1UL << 9) | (1UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_RO_RO   ((1UL << 9) | (3UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_RW_NO   ((0UL << 9) | (1UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_RW_RO   ((0UL << 9) | (2UL << 4))
#define TT_DESCRIPTOR_PAGE_AP_RW_RW   ((0UL << 9) | (3UL << 4))
#define TT_DESCRIPTOR_PAGE_ATTRIBUTE_MASK
Value:
#define TT_DESCRIPTOR_PAGE_AP_MASK
Definition: ArmV7Mmu.h:94
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:118
#define TT_DESCRIPTOR_PAGE_S_MASK
Definition: ArmV7Mmu.h:82
#define TT_DESCRIPTOR_PAGE_XN_MASK
Definition: ArmV7Mmu.h:103
#define TT_DESCRIPTOR_PAGE_NG_MASK
Definition: ArmV7Mmu.h:74
#define TT_DESCRIPTOR_PAGE_BASE_ADDRESS (   a)    ((a) & TT_DESCRIPTOR_PAGE_BASE_ADDRESS_MASK)
#define TT_DESCRIPTOR_PAGE_BASE_ADDRESS_MASK   (0xFFFFF000)
#define TT_DESCRIPTOR_PAGE_BASE_SHIFT   12
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_MASK   ((3UL << 6) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_NON_CACHEABLE   ((1UL << 6) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 6) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 6) | (0UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 6) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 6) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 6) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 6) | (1UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_PAGE_CACHEABLE_MASK   (1UL << 3)
#define TT_DESCRIPTOR_PAGE_DEVICE
Value:
#define TT_DESCRIPTOR_PAGE_AP_RW_RW
Definition: ArmV7Mmu.h:98
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL
Definition: ArmV7Mmu.h:75
#define TT_DESCRIPTOR_PAGE_S_NOT_SHARED
Definition: ArmV7Mmu.h:83
#define TT_DESCRIPTOR_PAGE_XN_MASK
Definition: ArmV7Mmu.h:103
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_SHAREABLE_DEVICE
Definition: ArmV7Mmu.h:121
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE
Definition: ArmV7Mmu.h:60
#define TT_DESCRIPTOR_PAGE_INDEX_MASK   (0x000FF000)
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL   (0UL << 11)
#define TT_DESCRIPTOR_PAGE_NG_LOCAL   (1UL << 11)
#define TT_DESCRIPTOR_PAGE_NG_MASK   (1UL << 11)
#define TT_DESCRIPTOR_PAGE_S_MASK   (1UL << 10)
#define TT_DESCRIPTOR_PAGE_S_NOT_SHARED   (0UL << 10)
#define TT_DESCRIPTOR_PAGE_S_SHARED   (1UL << 10)
#define TT_DESCRIPTOR_PAGE_SIZE   (0x00001000)
#define TT_DESCRIPTOR_PAGE_TYPE_FAULT   (0UL << 0)
#define TT_DESCRIPTOR_PAGE_TYPE_LARGEPAGE   (1UL << 0)
#define TT_DESCRIPTOR_PAGE_TYPE_MASK   (3UL << 0)
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE   (2UL << 0)
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE_XN   (3UL << 0)
#define TT_DESCRIPTOR_PAGE_UNCACHED
Value:
#define TT_DESCRIPTOR_PAGE_AP_RW_RW
Definition: ArmV7Mmu.h:98
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_NON_CACHEABLE
Definition: ArmV7Mmu.h:124
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL
Definition: ArmV7Mmu.h:75
#define TT_DESCRIPTOR_PAGE_S_NOT_SHARED
Definition: ArmV7Mmu.h:83
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE
Definition: ArmV7Mmu.h:60
#define TT_DESCRIPTOR_PAGE_WRITE_BACK
Value:
#define TT_DESCRIPTOR_PAGE_AP_RW_RW
Definition: ArmV7Mmu.h:98
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL
Definition: ArmV7Mmu.h:75
#define TT_DESCRIPTOR_PAGE_S_SHARED
Definition: ArmV7Mmu.h:84
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_BACK_ALLOC
Definition: ArmV7Mmu.h:125
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE
Definition: ArmV7Mmu.h:60
#define TT_DESCRIPTOR_PAGE_WRITE_THROUGH
Value:
#define TT_DESCRIPTOR_PAGE_AP_RW_RW
Definition: ArmV7Mmu.h:98
#define TT_DESCRIPTOR_PAGE_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC
Definition: ArmV7Mmu.h:122
#define TT_DESCRIPTOR_PAGE_NG_GLOBAL
Definition: ArmV7Mmu.h:75
#define TT_DESCRIPTOR_PAGE_S_SHARED
Definition: ArmV7Mmu.h:84
#define TT_DESCRIPTOR_PAGE_TYPE_PAGE
Definition: ArmV7Mmu.h:60
#define TT_DESCRIPTOR_PAGE_XN_MASK   (0x1UL << 0)
#define TT_DESCRIPTOR_SECTION_AP_MASK   ((1UL << 15) | (3UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_NO_NO   ((0UL << 15) | (0UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_RO_NO   ((1UL << 15) | (1UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_RO_RO   ((1UL << 15) | (3UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_RW_NO   ((0UL << 15) | (1UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_RW_RO   ((0UL << 15) | (2UL << 10))
#define TT_DESCRIPTOR_SECTION_AP_RW_RW   ((0UL << 15) | (3UL << 10))
#define TT_DESCRIPTOR_SECTION_ATTRIBUTE_MASK
Value:
#define TT_DESCRIPTOR_SECTION_AP_MASK
Definition: ArmV7Mmu.h:86
#define TT_DESCRIPTOR_SECTION_NG_MASK
Definition: ArmV7Mmu.h:70
#define TT_DESCRIPTOR_SECTION_S_MASK
Definition: ArmV7Mmu.h:78
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_MASK
Definition: ArmV7Mmu.h:106
#define TT_DESCRIPTOR_SECTION_XN_MASK
Definition: ArmV7Mmu.h:102
#define TT_DESCRIPTOR_SECTION_NS_MASK
Definition: ArmV7Mmu.h:67
#define TT_DESCRIPTOR_SECTION_BASE_ADDRESS (   a)    ((a) & TT_DESCRIPTOR_SECTION_BASE_ADDRESS_MASK)
#define TT_DESCRIPTOR_SECTION_BASE_ADDRESS_MASK   (0xFFF00000)
#define TT_DESCRIPTOR_SECTION_BASE_SHIFT   20
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_MASK   ((3UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_NON_CACHEABLE   ((1UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_NON_SHAREABLE_DEVICE   ((2UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_SHAREABLE_DEVICE   ((0UL << 12) | (0UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_STRONGLY_ORDERED   ((0UL << 12) | (0UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_BACK_ALLOC   ((1UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_BACK_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (1UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC   ((0UL << 12) | (1UL << 3) | (0UL << 2))
#define TT_DESCRIPTOR_SECTION_CACHEABLE_MASK   (1UL << 3)
#define TT_DESCRIPTOR_SECTION_DEVICE (   NonSecure)
Value:
((NonSecure) ? TT_DESCRIPTOR_SECTION_NS : 0) | \
#define TT_DESCRIPTOR_SECTION_S_NOT_SHARED
Definition: ArmV7Mmu.h:79
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL
Definition: ArmV7Mmu.h:71
#define TT_DESCRIPTOR_SECTION_NS
Definition: ArmV7Mmu.h:68
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION
Definition: ArmV7Mmu.h:53
#define TT_DESCRIPTOR_SECTION_AP_RW_RW
Definition: ArmV7Mmu.h:90
#define TT_DESCRIPTOR_SECTION_XN_MASK
Definition: ArmV7Mmu.h:102
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_SHAREABLE_DEVICE
Definition: ArmV7Mmu.h:109
#define TT_DESCRIPTOR_SECTION_DOMAIN(a)
Definition: ArmV7Mmu.h:162
#define TT_DESCRIPTOR_SECTION_DOMAIN (   a)    (((a) & 0x0FUL) << 5)
#define TT_DESCRIPTOR_SECTION_DOMAIN_MASK   (0x0FUL << 5)
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL   (0UL << 17)
#define TT_DESCRIPTOR_SECTION_NG_LOCAL   (1UL << 17)
#define TT_DESCRIPTOR_SECTION_NG_MASK   (1UL << 17)
#define TT_DESCRIPTOR_SECTION_NS   (1UL << 19)
#define TT_DESCRIPTOR_SECTION_NS_MASK   (1UL << 19)
#define TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK   (0xFFFFFC00)
#define TT_DESCRIPTOR_SECTION_S_MASK   (1UL << 16)
#define TT_DESCRIPTOR_SECTION_S_NOT_SHARED   (0UL << 16)
#define TT_DESCRIPTOR_SECTION_S_SHARED   (1UL << 16)
#define TT_DESCRIPTOR_SECTION_SIZE   (0x00100000)
#define TT_DESCRIPTOR_SECTION_TYPE_FAULT   (0UL << 0)
#define TT_DESCRIPTOR_SECTION_TYPE_IS_PAGE_TABLE (   Desc)    (((Desc) & 3UL) == TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE)
#define TT_DESCRIPTOR_SECTION_TYPE_MASK   ((1UL << 18) | (3UL << 0))
#define TT_DESCRIPTOR_SECTION_TYPE_PAGE_TABLE   (1UL << 0)
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION   ((0UL << 18) | (2UL << 0))
#define TT_DESCRIPTOR_SECTION_TYPE_SUPERSECTION   ((1UL << 18) | (2UL << 0))
#define TT_DESCRIPTOR_SECTION_UNCACHED (   NonSecure)
Value:
((NonSecure) ? TT_DESCRIPTOR_SECTION_NS : 0) | \
#define TT_DESCRIPTOR_SECTION_S_NOT_SHARED
Definition: ArmV7Mmu.h:79
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_NON_CACHEABLE
Definition: ArmV7Mmu.h:112
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL
Definition: ArmV7Mmu.h:71
#define TT_DESCRIPTOR_SECTION_NS
Definition: ArmV7Mmu.h:68
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION
Definition: ArmV7Mmu.h:53
#define TT_DESCRIPTOR_SECTION_AP_RW_RW
Definition: ArmV7Mmu.h:90
#define TT_DESCRIPTOR_SECTION_DOMAIN(a)
Definition: ArmV7Mmu.h:162
#define TT_DESCRIPTOR_SECTION_WRITE_BACK (   NonSecure)
Value:
((NonSecure) ? TT_DESCRIPTOR_SECTION_NS : 0) | \
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_BACK_ALLOC
Definition: ArmV7Mmu.h:113
#define TT_DESCRIPTOR_SECTION_S_SHARED
Definition: ArmV7Mmu.h:80
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL
Definition: ArmV7Mmu.h:71
#define TT_DESCRIPTOR_SECTION_NS
Definition: ArmV7Mmu.h:68
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION
Definition: ArmV7Mmu.h:53
#define TT_DESCRIPTOR_SECTION_AP_RW_RW
Definition: ArmV7Mmu.h:90
#define TT_DESCRIPTOR_SECTION_DOMAIN(a)
Definition: ArmV7Mmu.h:162
#define TT_DESCRIPTOR_SECTION_WRITE_THROUGH (   NonSecure)
Value:
((NonSecure) ? TT_DESCRIPTOR_SECTION_NS : 0) | \
#define TT_DESCRIPTOR_SECTION_CACHE_POLICY_WRITE_THROUGH_NO_ALLOC
Definition: ArmV7Mmu.h:110
#define TT_DESCRIPTOR_SECTION_S_SHARED
Definition: ArmV7Mmu.h:80
#define TT_DESCRIPTOR_SECTION_NG_GLOBAL
Definition: ArmV7Mmu.h:71
#define TT_DESCRIPTOR_SECTION_NS
Definition: ArmV7Mmu.h:68
#define TT_DESCRIPTOR_SECTION_TYPE_SECTION
Definition: ArmV7Mmu.h:53
#define TT_DESCRIPTOR_SECTION_AP_RW_RW
Definition: ArmV7Mmu.h:90
#define TT_DESCRIPTOR_SECTION_DOMAIN(a)
Definition: ArmV7Mmu.h:162
#define TT_DESCRIPTOR_SECTION_XN_MASK   (0x1UL << 4)
#define TTBR_INNER_CACHEABLE   BIT0
#define TTBR_INNER_NON_CACHEABLE   0
#define TTBR_MP_NON_CACHEABLE   ( TTBR_RGN_OUTER_NON_CACHEABLE | TTBR_RGN_INNER_NON_CACHEABLE )
#define TTBR_NON_CACHEABLE   ( TTBR_RGN_OUTER_NON_CACHEABLE | TTBR_INNER_NON_CACHEABLE )
#define TTBR_NON_SHAREABLE   0
#define TTBR_NOT_OUTER_SHAREABLE   BIT5
#define TTBR_RGN_INNER_NON_CACHEABLE   0
#define TTBR_RGN_INNER_WRITE_BACK_ALLOC   BIT6
#define TTBR_RGN_INNER_WRITE_BACK_NO_ALLOC   (BIT0|BIT6)
#define TTBR_RGN_INNER_WRITE_THROUGH   BIT0
#define TTBR_RGN_OUTER_NON_CACHEABLE   0
#define TTBR_RGN_OUTER_WRITE_BACK_ALLOC   BIT3
#define TTBR_RGN_OUTER_WRITE_BACK_NO_ALLOC   (BIT3|BIT4)
#define TTBR_RGN_OUTER_WRITE_THROUGH   BIT4
#define TTBR_SHAREABLE   BIT1
#define TTBR_WRITE_BACK_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_ALLOC | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)
#define TTBR_WRITE_BACK_NO_ALLOC   ( TTBR_RGN_OUTER_WRITE_BACK_NO_ALLOC | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)
#define TTBR_WRITE_THROUGH   ( TTBR_RGN_OUTER_WRITE_THROUGH | TTBR_INNER_CACHEABLE | TTBR_SHAREABLE)

Typedef Documentation

typedef UINT32 ARM_PAGE_TABLE_ENTRY

Function Documentation

UINT32 ConvertSectionAttributesToPageAttributes ( IN UINT32  SectionAttributes,
IN BOOLEAN  IsLargePage 
)