mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

Currently MDCR_EL3 register value is same for all the worlds(Non-secure, Secure, Realm and Root). With this approach, features enable/disable settings remain same across all the worlds. This is not ideal as there must be flexibility in controlling feature as per the requirements for individual world. The patch addresses this by providing MDCR_EL3 a per world value. Features with identical values for all the worlds are grouped under ``manage_extensions_common`` API. Change-Id: Ibc068d985fe165d8cb6d0ffb84119bffd743b3d1 Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
38 lines
640 B
C
38 lines
640 B
C
/*
|
|
* Copyright (c) 2021-2024, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef TRF_H
|
|
#define TRF_H
|
|
|
|
#include <context.h>
|
|
|
|
#if ENABLE_TRF_FOR_NS
|
|
|
|
#if __aarch64__
|
|
void trf_enable(cpu_context_t *ctx);
|
|
void trf_init_el2_unused(void);
|
|
#else /* !__aarch64 */
|
|
void trf_init_el3(void);
|
|
#endif /* __aarch64__ */
|
|
|
|
#else /* ENABLE_TRF_FOR_NS=0 */
|
|
|
|
#if __aarch64__
|
|
static inline void trf_enable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void trf_init_el2_unused(void)
|
|
{
|
|
}
|
|
#else /* !__aarch64 */
|
|
static inline void trf_init_el3(void)
|
|
{
|
|
}
|
|
#endif /* __aarch64__*/
|
|
|
|
#endif /* ENABLE_TRF_FOR_NS */
|
|
|
|
#endif /* TRF_H */
|