summaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorBoyan Karatotev <boyan.karatotev@arm.com>2023-02-16 09:45:29 +0000
committerJayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>2023-06-29 09:59:06 +0100
commit83a4dae1af916b938659b39b7d0884359c638185 (patch)
tree0870209f80bb3fb7391de61650bd9143f5d0907f /bl2
parentc73686a11cea8f9d22d7df3c5480f8824cfeec09 (diff)
refactor(pmu): convert FEAT_MTPMU to C and move to persistent register init
The FEAT_MTPMU feature disable runs very early after reset. This means, it needs to be written in assembly, since the C runtime has not been initialised yet. However, there is no need for it to be initialised so soon. The PMU state is only relevant after TF-A has relinquished control. The code to do this is also very verbose and difficult to read. Delaying the initialisation allows for it to happen with the rest of the PMU. Align with FEAT_STATE in the process. BREAKING CHANGE: This patch explicitly breaks the EL2 entry path. It is currently unsupported. Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com> Change-Id: I2aa659d026fbdb75152469f6d19812ece3488c6f
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2.mk4
1 files changed, 0 insertions, 4 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk
index 19b955f17..1663c52ef 100644
--- a/bl2/bl2.mk
+++ b/bl2/bl2.mk
@@ -43,10 +43,6 @@ BL2_SOURCES += bl2/${ARCH}/bl2_el3_entrypoint.S \
bl2/${ARCH}/bl2_run_next_image.S \
lib/cpus/${ARCH}/cpu_helpers.S
-ifeq (${DISABLE_MTPMU},1)
-BL2_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S
-endif
-
ifeq (${ARCH},aarch64)
BL2_SOURCES += lib/cpus/aarch64/dsu_helpers.S
endif