AArch64: Disable Secure Cycle Counter
This patch fixes an issue when secure world timing information
can be leaked because Secure Cycle Counter is not disabled.
For ARMv8.5 the counter gets disabled by setting MDCR_El3.SCCD
bit on CPU cold/warm boot.
For the earlier architectures PMCR_EL0 register is saved/restored
on secure world entry/exit from/to Non-secure state, and cycle
counting gets disabled by setting PMCR_EL0.DP bit.
'include\aarch64\arch.h' header file was tided up and new
ARMv8.5-PMU related definitions were added.

Change-Id: I6f56db6bc77504634a352388990ad925a69ebbfa
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
1 parent 5119fa7 commit e290a8fcbc836d51566da1607add8a320d0f1a20
@Alexei Fedorov Alexei Fedorov authored on 13 Aug 2019
Showing 8 changed files
View
bl1/aarch64/bl1_exceptions.S
View
bl31/aarch64/ea_delegate.S
View
bl31/aarch64/runtime_exceptions.S
View
include/arch/aarch64/arch.h
View
include/arch/aarch64/el3_common_macros.S
View
include/lib/el3_runtime/aarch64/context.h
View
lib/el3_runtime/aarch64/context.S
View
lib/el3_runtime/aarch64/context_mgmt.c