diff options
author | Jessica Clarke <jrtc27@jrtc27.com> | 2024-11-06 16:38:17 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-11-14 06:25:27 +0000 |
commit | 1bd09ad1936c51fcbfbec2ed4df59a2fbc182a62 (patch) | |
tree | 207dfeb3e4116c8493b175afab7b45653a6773fc /MdePkg | |
parent | ef35863880ab7728e69c690603afb77182cb14ea (diff) | |
download | edk2-1bd09ad1936c51fcbfbec2ed4df59a2fbc182a62.tar.gz edk2-1bd09ad1936c51fcbfbec2ed4df59a2fbc182a62.tar.bz2 edk2-1bd09ad1936c51fcbfbec2ed4df59a2fbc182a62.zip |
MdePkg: Define AARCH64_CPTR_RES1 and AARCH64_CPTR_DEFAULT
These constants give the set of RES1 bits in CPTR_EL2, as 1s, and the
default value to use for CPTR_EL2 in order to enable all known (or
harmless) features but no unknown ones that require EL2 knowledge. This
will be used by ArmPlatformPkg in the following commit, separated due to
being different packages, even though the combined change is tiny.
Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Include/AArch64/AArch64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdePkg/Include/AArch64/AArch64.h b/MdePkg/Include/AArch64/AArch64.h index 3186bfb548..ab01d2e54d 100644 --- a/MdePkg/Include/AArch64/AArch64.h +++ b/MdePkg/Include/AArch64/AArch64.h @@ -22,7 +22,9 @@ #define CPACR_DEFAULT CPACR_FPEN_FULL
// Coprocessor Trap Register (CPTR)
-#define AARCH64_CPTR_TFP (1 << 10)
+#define AARCH64_CPTR_TFP (1 << 10)
+#define AARCH64_CPTR_RES1 0x33ff
+#define AARCH64_CPTR_DEFAULT AARCH64_CPTR_RES1
// ID_AA64MMFR1 - AArch64 Memory Model Feature Register 0 definitions
#define AARCH64_MMFR1_VH (0xF << 8)
|