arm-trusted-firmware/bl1
Boyan Karatotev 1d6d6802dd fix(pmu): unconditionally save PMCR_EL0
Reading back a RES0 bit does not necessarily mean it will be read as 0.
The Arm ARM explicitly warns against doing this. The PMU initialisation
code tries to set such bits to 1 (in MDCR_EL3) regardless of whether
they are in use or are RES0, checking their value could be wrong and
PMCR_EL0 might not end up being saved.

Save PMCR_EL0 unconditionally to prevent this. Remove the security state
change as the outgoing state is not relevant to what the root world
context should look like.

Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Id43667d37b0e2da3ded0beaf23fa0d4f9013f470
2023-05-05 13:16:18 +01:00
..
aarch32 feat(debug): add helpers for aborts on AARCH32 2022-10-03 14:42:40 +02:00
aarch64 fix(pmu): unconditionally save PMCR_EL0 2023-05-05 13:16:18 +01:00
tbbr Coverity: remove unnecessary header file includes 2020-02-04 10:23:51 -06:00
bl1.ld.S build: always prefix section names with . 2023-02-20 18:29:33 +00:00
bl1.mk build(bl1): sort sections by alignment by default 2023-04-17 16:45:09 +01:00
bl1_fwu.c style: remove useless trailing semicolon and line continuations 2023-03-09 14:59:08 +01:00
bl1_main.c refactor(measured-boot): avoid Measured-Boot dependency on Trusted-Boot 2022-01-11 23:06:22 +00:00
bl1_private.h feat(rme): run BL2 in root world when FEAT_RME is enabled 2021-10-04 21:13:20 +02:00