MdePkg/AArch64: Add some missing MMU related constants

Add definitions for the non-global page tables descriptor attribute, as
well as the E2H TCR bit, so that we can use them in the MMU code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
Ard Biesheuvel 2024-11-12 16:18:01 +01:00 committed by mergify[bot]
parent a25eb7557f
commit c2827283a8
2 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,7 @@
#define ARM_HCR_AMO BIT5
#define ARM_HCR_TSC BIT19
#define ARM_HCR_TGE BIT27
#define ARM_HCR_E2H BIT34
// Exception Syndrome Register
#define AARCH64_ESR_EC(Ecr) ((0x3F << 26) & (Ecr))

View File

@ -67,6 +67,7 @@
#define TT_NS BIT5
#define TT_AF BIT10
#define TT_NG BIT11
#define TT_SH_NON_SHAREABLE (0x0 << 8)
#define TT_SH_OUTER_SHAREABLE (0x2 << 8)