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

The FEATURE_DETECTION functionality had some definitions in a header file, although they were only used internally in the .c file. Move them over there, since there are of no interest to other users. Also use the opportuntiy to rename the less telling FEAT_STATE_[12] names, and let the "0" case join the game. We use DISABLED, ALWAYS, and CHECK now, so that the casual reader has some idea what those numbers are supposed to mean. feature_panic() becomes "static inline", since disabling all features makes it unused, so the compiler complains otherwise. Finally add a new category "cpufeat" to cover CPU feature related changes. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Change-Id: If0c8ba91ad22440260ccff383c33bdd055eefbdc
18 lines
368 B
C
18 lines
368 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
|
|
|
|
#endif /* FEAT_DETECT_H */
|