blob: be0fac170e923591d410662f5323263f01d4c488 [file] [log] [blame]
Sandeep Tripathy1c478392020-08-12 18:42:13 +05301/*
2 * Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved.
3 * Copyright (c) 2020, Broadcom
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <bl31/ehf.h>
8
9#include <platform_def.h>
10
11/*
12 * Enumeration of priority levels on ARM platforms.
13 */
14ehf_pri_desc_t plat_exceptions[] = {
Manish Pandeyd419e222023-02-13 12:39:17 +000015#if RAS_FFH_SUPPORT
Sandeep Tripathy1c478392020-08-12 18:42:13 +053016 /* RAS Priority */
17 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_RAS_PRI),
18#endif
19
20#if SDEI_SUPPORT
21 /* Critical priority SDEI */
22 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),
23
24 /* Normal priority SDEI */
25 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
26#endif
Omkar Anand Kulkarnia01256e2023-05-31 16:10:09 +053027
Sandeep Tripathy1c478392020-08-12 18:42:13 +053028#if SPM_MM
Omkar Anand Kulkarnia01256e2023-05-31 16:10:09 +053029#if RAS_FFH_SUPPORT
30#if (PLAT_SP_PRI != PLAT_RAS_PRI)
Sandeep Tripathy1c478392020-08-12 18:42:13 +053031 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
32#endif
Omkar Anand Kulkarnia01256e2023-05-31 16:10:09 +053033#else
34 EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
35#endif
36#endif
37
Elyes Haouas2be03c02023-02-13 09:14:48 +010038 /* Platform specific exceptions description */
Sandeep Tripathy1c478392020-08-12 18:42:13 +053039#ifdef PLAT_EHF_DESC
40 PLAT_EHF_DESC,
41#endif
42};
43
44/* Plug in ARM exceptions to Exception Handling Framework. */
45EHF_REGISTER_PRIORITIES(plat_exceptions, ARRAY_SIZE(plat_exceptions), PLAT_PRI_BITS);