Skip to content

Commit 1bd09ad

Browse files
jrtc27mergify[bot]
authored andcommitted
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>
1 parent ef35863 commit 1bd09ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MdePkg/Include/AArch64/AArch64.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
#define CPACR_DEFAULT CPACR_FPEN_FULL
2323

2424
// Coprocessor Trap Register (CPTR)
25-
#define AARCH64_CPTR_TFP (1 << 10)
25+
#define AARCH64_CPTR_TFP (1 << 10)
26+
#define AARCH64_CPTR_RES1 0x33ff
27+
#define AARCH64_CPTR_DEFAULT AARCH64_CPTR_RES1
2628

2729
// ID_AA64MMFR1 - AArch64 Memory Model Feature Register 0 definitions
2830
#define AARCH64_MMFR1_VH (0xF << 8)

0 commit comments

Comments
 (0)