mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

Introduce a new feature state CHECK_ASYMMETRIC to cater for the features which are asymmetric across cores. This state is useful for platforms which has architectural asymmetric cores (A feature is only present in one type of core e.g. big). This state is similar to FEAT_STATE_CHECK (dynamic detection) except that feature state is also checked on each core during warmboot path and override the context (just for asymmetric features) which was setup by core executing CPU_ON call. Only Non-secure context will be re-checked as secure and realm context is created on same core. Signed-off-by: Manish Pandey <manish.pandey2@arm.com> Change-Id: Ic78a0b6ca996e0d7881c43da1a6a0c422f528ef3
19 lines
409 B
C
19 lines
409 B
C
/*
|
|
* Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef FEAT_DETECT_H
|
|
#define FEAT_DETECT_H
|
|
|
|
/* Function Prototypes */
|
|
void detect_arch_features(void);
|
|
|
|
/* Macro Definitions */
|
|
#define FEAT_STATE_DISABLED 0
|
|
#define FEAT_STATE_ALWAYS 1
|
|
#define FEAT_STATE_CHECK 2
|
|
#define FEAT_STATE_CHECK_ASYMMETRIC 3
|
|
|
|
#endif /* FEAT_DETECT_H */
|