mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00

This patch removes RAS_FFH_SUPPORT macro which is the combination of ENABLE_FEAT_RAS and HANDLE_EA_EL3_FIRST_NS. Instead introduce an internal macro FFH_SUPPORT which gets enabled when platforms wants to enable lower EL EA handling at EL3. The internal macro FFH_SUPPORT will be automatically enabled if HANDLE_EA_EL3_FIRST_NS is enabled. FFH_SUPPORT along with ENABLE_FEAT_RAS will be used in source files to provide equivalent check which was provided by RAS_FFH_SUPPORT earlier. In generic code we needed a macro which could abstract both HANDLE_EA_EL3_FIRST_NS and RAS_FFH_SUPPORT macros that had limitations. Former was tied up with NS world only while the latter was tied to RAS feature. This is to allow Secure/Realm world to have their own FFH macros in future. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: Ie5692ccbf462f5dcc3f005a5beea5aa35124ac73
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2017-2023, ARM Limited and Contributors. All rights reserved.
|
|
* Copyright (c) 2020, Broadcom
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <bl31/ehf.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
/*
|
|
* Enumeration of priority levels on ARM platforms.
|
|
*/
|
|
ehf_pri_desc_t plat_exceptions[] = {
|
|
#if ENABLE_FEAT_RAS && FFH_SUPPORT
|
|
/* RAS Priority */
|
|
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_RAS_PRI),
|
|
#endif
|
|
|
|
#if SDEI_SUPPORT
|
|
/* Critical priority SDEI */
|
|
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_CRITICAL_PRI),
|
|
|
|
/* Normal priority SDEI */
|
|
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SDEI_NORMAL_PRI),
|
|
#endif
|
|
|
|
#if SPM_MM || (SPMC_AT_EL3 && SPMC_AT_EL3_SEL0_SP)
|
|
#if ENABLE_FEAT_RAS && FFH_SUPPORT
|
|
#if (PLAT_SP_PRI != PLAT_RAS_PRI)
|
|
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
|
|
#endif
|
|
#else
|
|
EHF_PRI_DESC(PLAT_PRI_BITS, PLAT_SP_PRI),
|
|
#endif
|
|
#endif
|
|
|
|
/* Platform specific exceptions description */
|
|
#ifdef PLAT_EHF_DESC
|
|
PLAT_EHF_DESC,
|
|
#endif
|
|
};
|
|
|
|
/* Plug in ARM exceptions to Exception Handling Framework. */
|
|
EHF_REGISTER_PRIORITIES(plat_exceptions, ARRAY_SIZE(plat_exceptions), PLAT_PRI_BITS);
|