diff options
author | davidcunado-arm <david.cunado@arm.com> | 2018-02-12 17:52:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-12 17:52:08 +0800 |
commit | 15e5958560e9d31e7357e3a0ada2289e78758839 (patch) | |
tree | 6753e121f929d75b5a49c2cb4f36777b25dd7c1c /include | |
parent | e47a8323ecff51470562c66e5357319276955814 (diff) | |
parent | fb750ee16112c7672ef605af35e174375c55fabc (diff) |
Merge pull request #1256 from jeenu-arm/tsp-ehf
TSP changes for EHF
Diffstat (limited to 'include')
-rw-r--r-- | include/bl31/interrupt_mgmt.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/bl31/interrupt_mgmt.h b/include/bl31/interrupt_mgmt.h index cccad3ad..d41edd09 100644 --- a/include/bl31/interrupt_mgmt.h +++ b/include/bl31/interrupt_mgmt.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -80,9 +80,19 @@ ((x) == INTR_NS_VALID_RM1 ? 0 :\ -EINVAL)) +#if EL3_EXCEPTION_HANDLING +/* + * With EL3 exception handling, EL3 interrupts are always routed to EL3 from + * both Secure and Non-secure, and therefore INTR_EL3_VALID_RM1 is the only + * valid routing model. + */ +#define validate_el3_interrupt_rm(x) ((x) == INTR_EL3_VALID_RM1 ? 0 : \ + -EINVAL) +#else #define validate_el3_interrupt_rm(x) ((x) == INTR_EL3_VALID_RM0 ? 0 : \ ((x) == INTR_EL3_VALID_RM1 ? 0 :\ -EINVAL)) +#endif /******************************************************************************* * Macros to set the 'flags' parameter passed to an interrupt type handler. Only |