blob: 785b7bb546197a43e0ca30b7bd69e96b8b773b2b [file] [log] [blame]
Jeenu Viswambharanb1837452017-10-24 11:47:13 +01001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
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 */
13ehf_pri_desc_t arm_exceptions[] = {
14#if SDEI_SUPPORT
15 /* Critical priority SDEI */
16 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),
17
18 /* Normal priority SDEI */
19 EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
20#endif
21};
22
23/* Plug in ARM exceptions to Exception Handling Framework. */
24EHF_REGISTER_PRIORITIES(arm_exceptions, ARRAY_SIZE(arm_exceptions), ARM_PRI_BITS);