mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
![]() In this patch, we are trying to introduce the wrapper macro CREATE_FEATURE_PRESENT to get the following capability and align it for all the features: -> is_feat_xx_present(): Does Hardware implement the feature. -> uniformity in naming the function across multiple features. -> improved readability The is_feat_xx_present() is implemented to check if the hardware implements the feature and does not take into account the ENABLE_FEAT_XXX flag enabled/disabled in software. - CREATE_FEATURE_PRESENT(name, idreg, shift, mask, idval) The wrapper macro reduces the function to a single line and creates the is_feat_xx_present function that checks the id register based on the shift and mask values and compares this against a determined idvalue. Change-Id: I7b91d2c9c6fbe55f94c693aa1b2c50be54fb9ecc Signed-off-by: Sona Mathew <sonarebecca.mathew@arm.com> |
||
---|---|---|
.. | ||
aarch32 | ||
aarch64 | ||
include | ||
sp_min | ||
trp | ||
common.mk | ||
qemu_bl1_setup.c | ||
qemu_bl2_mem_params_desc.c | ||
qemu_bl2_setup.c | ||
qemu_bl31_setup.c | ||
qemu_common.c | ||
qemu_console.c | ||
qemu_gicv2.c | ||
qemu_gicv3.c | ||
qemu_image_load.c | ||
qemu_io_storage.c | ||
qemu_plat_attest_token.c | ||
qemu_pm.c | ||
qemu_private.h | ||
qemu_realm_attest_key.c | ||
qemu_rotpk.S | ||
qemu_sdei.c | ||
qemu_spm.c | ||
qemu_stack_protector.c | ||
qemu_trusted_boot.c | ||
topology.c |