From 83a4dae1af916b938659b39b7d0884359c638185 Mon Sep 17 00:00:00 2001 From: Boyan Karatotev Date: Thu, 16 Feb 2023 09:45:29 +0000 Subject: 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 Change-Id: I2aa659d026fbdb75152469f6d19812ece3488c6f --- bl2/bl2.mk | 4 ---- 1 file changed, 4 deletions(-) (limited to 'bl2') 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 -- cgit v1.2.3