arm_ehf.c 775 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
8
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <platform_def.h>

9
10
#include <bl31/ehf.h>

11
12
13
14
/*
 * Enumeration of priority levels on ARM platforms.
 */
ehf_pri_desc_t arm_exceptions[] = {
15
16
17
18
19
#if RAS_EXTENSION
	/* RAS Priority */
	EHF_PRI_DESC(ARM_PRI_BITS, PLAT_RAS_PRI),
#endif

20
21
22
23
24
25
26
#if SDEI_SUPPORT
	/* Critical priority SDEI */
	EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),

	/* Normal priority SDEI */
	EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
#endif
27
#if ENABLE_SPM || SPM_MM
28
29
	EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SP_PRI),
#endif
30
31
32
33
};

/* Plug in ARM exceptions to Exception Handling Framework. */
EHF_REGISTER_PRIORITIES(arm_exceptions, ARRAY_SIZE(arm_exceptions), ARM_PRI_BITS);