arm-trusted-firmware/lib
David Cunado 495f3d3c51 Reset debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR
In order to avoid unexpected traps into EL3/MON mode, this patch
resets the debug registers, MDCR_EL3 and MDCR_EL2 for AArch64,
and SDCR and HDCR for AArch32.

MDCR_EL3/SDCR is zero'ed when EL3/MON mode is entered, at the
start of BL1 and BL31/SMP_MIN.

For MDCR_EL2/HDCR, this patch zero's the bits that are
architecturally UNKNOWN values on reset. This is done when
exiting from EL3/MON mode but only on platforms that support
EL2/HYP mode but choose to exit to EL1/SVC mode.

Fixes ARM-software/tf-issues#430

Change-Id: Idb992232163c072faa08892251b5626ae4c3a5b6
Signed-off-by: David Cunado <david.cunado@arm.com>
2016-11-09 15:45:06 +00:00
..
aarch32 AArch32: Add `memcpy4` function in assembly 2016-09-28 14:03:47 +01:00
aarch64 Refactor the xlat_tables library code 2016-04-13 12:06:23 +01:00
cpus AArch32: Add support for ARM Cortex-A32 MPCore Processor 2016-09-21 16:28:55 +01:00
el3_runtime Reset debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR 2016-11-09 15:45:06 +00:00
libfdt Minor libfdt changes to enable TF integration 2016-06-03 14:21:03 +01:00
locks AArch32: Add support in TF libraries 2016-08-10 12:35:46 +01:00
pmf Add Performance Measurement Framework(PMF) 2016-06-16 08:31:42 +01:00
psci Add PMF instrumentation points in TF 2016-10-12 15:36:49 +01:00
semihosting AArch32: Common changes needed for BL1/BL2 2016-09-21 16:27:15 +01:00
stdlib Move stdlib header files to include/lib/stdlib 2016-06-03 14:20:48 +01:00
xlat_tables Automatically select initial xlation lookup level 2016-08-23 10:51:44 +01:00