]> git.baikalelectronics.ru Git - arm-tf.git/commit
refactor(cpufeat): enable FEAT_PAN for FEAT_STATE_CHECKED
authorAndre Przywara <andre.przywara@arm.com>
Thu, 26 Jan 2023 15:27:38 +0000 (15:27 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Wed, 22 Mar 2023 13:33:22 +0000 (13:33 +0000)
commit4f5ef849c184313a2ba124ff0dd0b1545ddee217
treea389d3196e2ab6330f11a31a91324a0bb658756d
parent240770989f618da1b015f9a580fe0c83e10688a2
refactor(cpufeat): enable FEAT_PAN for FEAT_STATE_CHECKED

At the moment we only support FEAT_PAN to be either unconditionally
compiled in, or to be not supported at all.

Add support for runtime detection (ENABLE_FEAT_PAN=2), by splitting
is_armv8_1_pan_present() into an ID register reading function and a
second function to report the support status. That function considers
both build time settings and runtime information (if needed), and is
used before we PAN specific setup.

Change the FVP platform default to the now supported dynamic option (=2),
so the right decision can be made by the code at runtime.

Change-Id: I58e5fe8d3c9332820391c7d93a8fb9dba4cf754a
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
common/feat_detect.c
include/arch/aarch64/arch_features.h
plat/arm/board/fvp/platform.mk
services/std_svc/sdei/sdei_intr_mgmt.c