From 1a7c1cfe70d5cd6e43e7d292eecbc1b4beaae678 Mon Sep 17 00:00:00 2001 From: Jeenu Viswambharan Date: Fri, 8 Dec 2017 12:13:51 +0000 Subject: RAS: Add fault injection support The ARMv8.4 RAS extensions introduce architectural support for software to inject faults into the system in order to test fault-handling software. This patch introduces the build option FAULT_HANDLING_SUPPORT to allow for lower ELs to use registers in the Standard Error Record to inject fault. The build option RAS_EXTENSIONS must also be enabled along with fault injection. This feature is intended for testing purposes only, and is advisable to keep disabled for production images. Change-Id: I6f7a4454b15aec098f9505a10eb188c2f928f7ea Signed-off-by: Jeenu Viswambharan --- include/lib/aarch64/arch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/lib/aarch64/arch.h b/include/lib/aarch64/arch.h index e836db1e9..92bb97d51 100644 --- a/include/lib/aarch64/arch.h +++ b/include/lib/aarch64/arch.h @@ -215,6 +215,7 @@ /* SCR definitions */ #define SCR_RES1_BITS ((U(1) << 4) | (U(1) << 5)) +#define SCR_FIEN_BIT (U(1) << 21) #define SCR_TWE_BIT (U(1) << 13) #define SCR_TWI_BIT (U(1) << 12) #define SCR_ST_BIT (U(1) << 11) -- cgit v1.2.3