Jeenu Viswambharan | b183745 | 2017-10-24 11:47:13 +0100 | [diff] [blame] | 1 | /* |
Jeenu Viswambharan | a5b5b8d | 2018-02-06 12:21:39 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. |
Jeenu Viswambharan | b183745 | 2017-10-24 11:47:13 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <ehf.h> |
| 8 | #include <platform_def.h> |
| 9 | |
| 10 | /* |
| 11 | * Enumeration of priority levels on ARM platforms. |
| 12 | */ |
| 13 | ehf_pri_desc_t arm_exceptions[] = { |
Jeenu Viswambharan | a5b5b8d | 2018-02-06 12:21:39 +0000 | [diff] [blame] | 14 | #if RAS_EXTENSION |
| 15 | /* RAS Priority */ |
| 16 | EHF_PRI_DESC(ARM_PRI_BITS, PLAT_RAS_PRI), |
| 17 | #endif |
| 18 | |
Jeenu Viswambharan | b183745 | 2017-10-24 11:47:13 +0100 | [diff] [blame] | 19 | #if SDEI_SUPPORT |
| 20 | /* Critical priority SDEI */ |
| 21 | EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_CRITICAL_PRI), |
| 22 | |
| 23 | /* Normal priority SDEI */ |
| 24 | EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI), |
| 25 | #endif |
Sughosh Ganu | d284b57 | 2018-11-14 10:42:46 +0530 | [diff] [blame] | 26 | #if ENABLE_SPM |
| 27 | EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SP_PRI), |
| 28 | #endif |
Jeenu Viswambharan | b183745 | 2017-10-24 11:47:13 +0100 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | /* Plug in ARM exceptions to Exception Handling Framework. */ |
| 32 | EHF_REGISTER_PRIORITIES(arm_exceptions, ARRAY_SIZE(arm_exceptions), ARM_PRI_BITS); |