2017-10-24 11:47:13 +01:00
|
|
|
/*
|
2019-09-16 12:29:03 +01:00
|
|
|
* Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
|
2017-10-24 11:47:13 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <platform_def.h>
|
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <bl31/ehf.h>
|
|
|
|
|
2017-10-24 11:47:13 +01:00
|
|
|
/*
|
|
|
|
* Enumeration of priority levels on ARM platforms.
|
|
|
|
*/
|
|
|
|
ehf_pri_desc_t arm_exceptions[] = {
|
2018-02-06 12:21:39 +00:00
|
|
|
#if RAS_EXTENSION
|
|
|
|
/* RAS Priority */
|
|
|
|
EHF_PRI_DESC(ARM_PRI_BITS, PLAT_RAS_PRI),
|
|
|
|
#endif
|
|
|
|
|
2017-10-24 11:47:13 +01:00
|
|
|
#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
|
2019-10-14 16:27:12 +01:00
|
|
|
#if SPM_MM
|
2018-11-14 05:12:46 +00:00
|
|
|
EHF_PRI_DESC(ARM_PRI_BITS, PLAT_SP_PRI),
|
|
|
|
#endif
|
2017-10-24 11:47:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Plug in ARM exceptions to Exception Handling Framework. */
|
|
|
|
EHF_REGISTER_PRIORITIES(arm_exceptions, ARRAY_SIZE(arm_exceptions), ARM_PRI_BITS);
|