arm-trusted-firmware/include
Jeenu Viswambharan ca6d918582 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>
2018-05-04 08:33:17 +01:00
..
bl1 Fix MISRA rule 8.4 Part 1 2018-02-28 17:19:55 +00:00
bl2 Fix MISRA rule 8.5 in common code 2018-04-13 14:01:56 +01:00
bl2u Fix MISRA rule 8.4 in common code 2018-02-28 17:18:46 +00:00
bl31 RAS: Allow individual interrupt registration 2018-05-04 08:33:17 +01:00
bl32 Introduce the new BL handover interface 2018-02-26 16:31:10 +00:00
common AArch64: Introduce RAS handling 2018-05-04 08:33:17 +01:00
drivers Merge pull request #1356 from robertovargas-arm/misra-changes 2018-04-16 15:04:28 +01:00
lib RAS: Allow individual interrupt registration 2018-05-04 08:33:17 +01:00
plat AArch64: Introduce External Abort handling 2018-05-04 08:32:42 +01:00
services Clean usage of void pointers to access symbols 2018-03-27 13:20:27 +01:00
tools_share Dynamic cfg: Update the tools 2018-02-26 16:31:10 +00:00