aboutsummaryrefslogtreecommitdiff
path: root/include/bl31
diff options
context:
space:
mode:
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>2017-12-12 10:34:58 +0000
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>2018-05-04 08:33:17 +0100
commitca6d9185829794f9d58dde706f94425a5c2cd9ef (patch)
treeba6123c7451d7913d2bd461ebba6b31da3fb5afc /include/bl31
parent362599eca43a0e97b1bd38bfc96d277d86faa3d4 (diff)
downloadtrusted-firmware-a-ca6d9185829794f9d58dde706f94425a5c2cd9ef.tar.gz
RAS: Allow individual interrupt registration
EHF currently allows for registering interrupt handlers for a defined priority ranges. This is primarily targeted at various EL3 dispatchers to own ranges of secure interrupt priorities in order to delegate execution to lower ELs. The RAS support added by earlier patches necessitates registering handlers based on interrupt number so that error handling agents shall receive and handle specific Error Recovery or Fault Handling interrupts at EL3. This patch introduces a macro, RAS_INTERRUPTS() to declare an array of interrupt numbers and handlers. Error handling agents can use this macro to register handlers for individual RAS interrupts. The array is expected to be sorted in the increasing order of interrupt numbers. As part of RAS initialisation, the list of all RAS interrupts are sorted based on their ID so that, given an interrupt, its handler can be looked up with a simple binary search. For an error handling agent that wants to handle a RAS interrupt, platform must: - Define PLAT_RAS_PRI to be the priority of all RAS exceptions. - Enumerate interrupts to have the GIC driver program individual EL3 interrupts to the required priority range. This is required by EHF even before this patch. Documentation to follow. Change-Id: I9471e4887ff541f8a7a63309e9cd8f771f76aeda Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
Diffstat (limited to 'include/bl31')
-rw-r--r--include/bl31/ea_handle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bl31/ea_handle.h b/include/bl31/ea_handle.h
index 9dfe3e0a7e..060c9b7f0b 100644
--- a/include/bl31/ea_handle.h
+++ b/include/bl31/ea_handle.h
@@ -18,4 +18,7 @@
/* External Abort synchronized by ESB instruction */
#define ERROR_EA_ESB 2
+/* RAS event signalled as peripheral interrupt */
+#define ERROR_INTERRUPT 3
+
#endif /* __EA_HANDLE_H__ */