Rework BL3-1 unhandled exception handling and reporting
This patch implements the register reporting when unhandled exceptions are taken in BL3-1. Unhandled exceptions will result in a dump of registers to the console, before halting execution by that CPU. The Crash Stack, previously called the Exception Stack, is used for this activity. This stack is used to preserve the CPU context and runtime stack contents for debugging and analysis. This also introduces the per_cpu_ptr_cache, referenced by tpidr_el3, to provide easy access to some of BL3-1 per-cpu data structures. Initially, this is used to provide a pointer to the Crash stack. panic() now prints the the error file and line number in Debug mode and prints the PC value in release mode. The Exception Stack is renamed to Crash Stack with this patch. The original intention of exception stack is no longer valid since we intend to support several valid exceptions like IRQ and FIQ in the trusted firmware context. This stack is now utilized for dumping and reporting the system state when a crash happens and hence the rename. Fixes ARM-software/tf-issues#79 Improve reporting of unhandled exception Change-Id: I260791dc05536b78547412d147193cdccae7811a
WIP_v2.3-LS
master
v2.2-LS
v2.4-LS
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.3
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.2
v2.1-rc1
v2.1-rc0
v2.1
v2.0-rc0
v2.0
v1.6-rc1
v1.6-rc0
v1.6
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.5
v1.4-rc0
v1.4
v1.3_rc2
v1.3_rc1
v1.3-rc0
v1.3
v1.2-rc0
v1.2
v1.1-rc3
v1.1-rc2
v1.1-rc1
v1.1-rc0
v1.1-Juno-0.1
v1.1
v1.0-rc0
v1.0
v0.4-rc2
v0.4-rc1
v0.4-Juno-0.6-rc1
v0.4-Juno-0.6-rc0
v0.4-Juno-0.5-rc1
v0.4-Juno-0.5-rc0
v0.4-Juno-0.5
v0.4-Juno-0.4-rc0
v0.4-Juno-0.4
v0.4
for-v0.4/05.22
for-v0.4/05.21
for-v0.4/05.20
for-v0.4-rc0
|
---|
|
Makefile |
---|
bl31/aarch64/crash_reporting.S 0 → 100644 |
---|
bl31/aarch64/runtime_exceptions.S |
---|
bl31/bl31.mk |
---|
bl31/bl31_main.c |
---|
bl31/context_mgmt.c |
---|
bl31/runtime_svc.c |
---|
common/debug.c 0 → 100644 |
---|
docs/porting-guide.md |
---|
drivers/arm/pl011/pl011_console.c |
---|
include/bl31/cm_macros.S |
---|
include/bl31/context.h |
---|
include/bl31/context_mgmt.h |
---|
include/bl31/runtime_svc.h |
---|
include/common/debug.h |
---|
include/lib/aarch64/arch_helpers.h |
---|
lib/aarch64/sysreg_helpers.S |
---|
plat/fvp/include/plat_macros.S 0 → 100644 |
---|
plat/fvp/platform.mk |
---|
services/spd/tspd/tspd_common.c |
---|
services/std_svc/psci/psci_afflvl_on.c |
---|
services/std_svc/psci/psci_afflvl_suspend.c |
---|
services/std_svc/psci/psci_setup.c |
---|