blob: 4ae992c95eb63c207a37ca1f795e40ed3d52a61b [file] [log] [blame]
Jeenu Viswambharanb1837452017-10-24 11:47:13 +01001/*
Jeenu Viswambharana5b5b8d2018-02-06 12:21:39 +00002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Jeenu Viswambharanb1837452017-10-24 11:47:13 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Jeenu Viswambharanb1837452017-10-24 11:47:13 +01007#include <platform_def.h>
8
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00009#include <bl31/ehf.h>
10
Jeenu Viswambharanb1837452017-10-24 11:47:13 +010011/*
12 * Enumeration of priority levels on ARM platforms.
13 */
14ehf_pri_desc_t arm_exceptions[] = {
Jeenu Viswambharana5b5b8d2018-02-06 12:21:39 +000015#if RAS_EXTENSION
16 /* RAS Priority */
17 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_RAS_PRI),
18#endif
19
Jeenu Viswambharanb1837452017-10-24 11:47:13 +010020#if SDEI_SUPPORT
21 /* Critical priority SDEI */
22 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),
23
24 /* Normal priority SDEI */
25 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
26#endif
Sughosh Ganud284b572018-11-14 10:42:46 +053027#if ENABLE_SPM
28 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SP_PRI),
29#endif
Jeenu Viswambharanb1837452017-10-24 11:47:13 +010030};
31
32/* Plug in ARM exceptions to Exception Handling Framework. */
33EHF_REGISTER_PRIORITIES(arm_exceptions, ARRAY_SIZE(arm_exceptions), ARM_PRI_BITS);