arm-trusted-firmware/include/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 Reset debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR 2016-11-09 15:45:06 +00:00
aarch64 Reset debug registers MDCR-EL3/SDCR and MDCR_EL2/HDCR 2016-11-09 15:45:06 +00:00
cpus AArch32: Add support for ARM Cortex-A32 MPCore Processor 2016-09-21 16:28:55 +01:00
el3_runtime Add PMF instrumentation points in TF 2016-10-12 15:36:49 +01:00
libfdt Minor libfdt changes to enable TF integration 2016-06-03 14:21:03 +01:00
pmf Add PMF instrumentation points in TF 2016-10-12 15:36:49 +01:00
psci PSCI: Introduce PSCI Library argument structure 2016-09-22 17:07:20 +01:00
stdlib Remove non-standard <sys/cdefs.h> include from uuid.h 2016-10-12 15:37:37 +01:00
bakery_lock.h Fix build error with optimizations disabled (-O0) 2016-04-14 16:24:03 +01:00
cassert.h Remove direct usage of __attribute__((foo)) 2016-01-14 10:55:17 -08:00
mmio.h Add mmio utility functions 2015-08-05 19:55:06 +08:00
runtime_instr.h Add PMF instrumentation points in TF 2016-10-12 15:36:49 +01:00
semihosting.h Remove variables from .data section 2014-05-06 17:55:38 +01:00
smcc.h Introduce PSCI Library Interface 2016-07-19 10:19:01 +01:00
spinlock.h Always use named structs in header files 2014-05-06 13:57:48 +01:00
utils.h Move SIZE_FROM_LOG2_WORDS macro to utils.h 2016-08-09 17:33:57 +01:00
xlat_tables.h Restore some defines in xlat_tables.h 2016-09-15 10:18:50 +01:00