arm-trusted-firmware/bl2
Boyan Karatotev 83a4dae1af 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
2023-06-29 09:59:06 +01:00
..
aarch32 feat(debug): add helpers for aborts on AARCH32 2022-10-03 14:42:40 +02:00
aarch64 chore(pauth): remove redundant pauth_disable_el3() call 2023-04-28 08:09:14 +01:00
bl2.ld.S chore(bl): add UNALIGNED symbols for TEXT/RODATA 2023-06-12 12:50:08 +02:00
bl2.mk refactor(pmu): convert FEAT_MTPMU to C and move to persistent register init 2023-06-29 09:59:06 +01:00
bl2_el3.ld.S chore(bl): add UNALIGNED symbols for TEXT/RODATA 2023-06-12 12:50:08 +02:00
bl2_image_load_v2.c fix(bl2): correct messages with image_id 2022-02-15 18:09:51 +01:00
bl2_main.c refactor(build): distinguish BL2 as TF-A entry point and BL2 running at EL3 2023-03-15 11:43:14 +00:00
bl2_private.h Move BL1 and BL2 private defines to bl_common.h 2019-01-15 13:52:32 +00:00