arm-trusted-firmware/include/arch/aarch64
Andre Przywara 1ae75529bc feat(fvp): emulate trapped RNDR
When a platform decides to use FEAT_RNG_TRAP, every RNDR or RNDRSS read
will trap into EL3. The platform can then emulate those instructions, by
either executing the real CPU instructions, potentially conditioning the
results, or use rate-limiting or filtering to protect the hardware
entropy pool. Another possiblitiy would be to use some platform specific
TRNG device to get entropy and returning this.

To demonstrate platform specific usage, add a demo implementation for the
FVP: It will execute the actual CPU instruction and just return the
result. This should serve as reference code to implement platform specific
policies.

We change the definition of read_rndr() and read_rndrrs() to use the
alternative sysreg encoding, so that all assemblers can handle that.

Add documentation about the new platform specific RNG handler function.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Change-Id: Ibce817b3b06ad20129d15531b81402e3cc3e9a9e
2022-12-21 12:59:36 +00:00
..
arch.h feat(fvp): emulate trapped RNDR 2022-12-21 12:59:36 +00:00
arch_features.h fix(aarch64): make AArch64 FGT feature detection more robust 2022-10-20 16:11:26 +01:00
arch_helpers.h feat(fvp): emulate trapped RNDR 2022-12-21 12:59:36 +00:00
asm_macros.S fix(security): optimisations for CVE-2022-23960 2022-10-26 16:45:12 -05:00
assert_macros.S Reorganize architecture-dependent header files 2019-01-04 10:43:16 +00:00
console_macros.S Console: remove deprecated finish_console_register 2019-04-03 14:55:18 +01:00
el2_common_macros.S refactor(fvp_r): remove unused files and clean up makefiles 2021-10-29 09:43:19 -05:00
el3_common_macros.S feat(bl2): add support to separate no-loadable sections 2022-03-27 23:24:24 +08:00
smccc_helpers.h feat(tsp): add FF-A support to the TSP 2022-08-24 14:46:30 +01:00