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

With introduction of FEAT_STATE_CHECK_ASYMMETRIC, the asymmetry of cores can be handled. FEAT_TCR2 is one of the features which can be asymmetric across cores and the respective support is added here. Adding a function to handle this asymmetry by re-visting the feature presence on running core. There are two possible cases: - If the primary core has the feature and secondary does not have it then the feature is disabled. - If the primary does not have the feature and secondary has it then, the feature need to be enabled in secondary cores. Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com> Change-Id: I73a70891d52268ddfa4effe40edf04115f5821ca
24 lines
428 B
C
24 lines
428 B
C
/*
|
|
* Copyright (c) 2024, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef TCR2_H
|
|
#define TCR2_H
|
|
|
|
#include <context.h>
|
|
|
|
#if ENABLE_FEAT_TCR2
|
|
void tcr2_enable(cpu_context_t *ctx);
|
|
void tcr2_disable(cpu_context_t *ctx);
|
|
#else
|
|
static inline void tcr2_enable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
static inline void tcr2_disable(cpu_context_t *ctx)
|
|
{
|
|
}
|
|
#endif /* ENABLE_FEAT_TCR2 */
|
|
|
|
#endif /* TCR2_H */
|