From ff86e0b4e6c34d28b8642dd8eb9cbdd517bad195 Mon Sep 17 00:00:00 2001 From: Juan Pablo Conde Date: Tue, 12 Jul 2022 16:40:29 -0400 Subject: feat(rng-trap): add EL3 support for FEAT_RNG_TRAP FEAT_RNG_TRAP introduces support for EL3 trapping of reads of the RNDR and RNDRRS registers, which is enabled by setting the SCR_EL3.TRNDR bit. This patch adds a new build flag ENABLE_FEAT_RNG_TRAP that enables the feature. This feature is supported only in AArch64 state from Armv8.5 onwards. Signed-off-by: Juan Pablo Conde Change-Id: Ia9f17aef3444d3822bf03809036a1f668c9f2d89 --- make_helpers/defaults.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'make_helpers') diff --git a/make_helpers/defaults.mk b/make_helpers/defaults.mk index fab6bf6da..42ebd33c4 100644 --- a/make_helpers/defaults.mk +++ b/make_helpers/defaults.mk @@ -160,6 +160,10 @@ ENABLE_FEAT_PAN := 0 # Flag to enable access to the Random Number Generator registers ENABLE_FEAT_RNG := 0 +# Flag to enable support for EL3 trapping of reads of the RNDR and RNDRRS +# registers, by setting SCR_EL3.TRNDR. +ENABLE_FEAT_RNG_TRAP := 0 + # Flag to enable Speculation Barrier Instruction ENABLE_FEAT_SB := 0 -- cgit v1.2.1