coreboot/src
Julius Werner d0db2f5e93 armv7: Support stack dump after exceptions
This patch enhances the armv7 exception handlers in Coreboot and
libpayload to show the correct SP and LR registers from the aborted
context, and also dump a part of the current stack. Since we cannot
access the banked registers of SVC mode from a different exception mode,
it changes Coreboot (and its payloads) to run in System mode instead. As
both modes can execute all privileged instructions, this should not have
any noticeable effect on firmware operation (please correct me if I'm
wrong!).

BUG=None
TEST=Cause a data_abort in Coreboot or depthcharge. Marvel at the
beautifully displayed stack dump that helps you debug the abort.

Change-Id: I0e04f47619e55308f7da4a3a99c9cae6ae35cc30
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/170045
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2013-09-23 19:28:41 +00:00
..
arch armv7: Support stack dump after exceptions 2013-09-23 19:28:41 +00:00
console console: conditionally include console in bootblock 2013-09-13 22:18:40 +00:00
cpu armv7: Support stack dump after exceptions 2013-09-23 19:28:41 +00:00
device Add Kconfig options to override Subsytem Vendor and Device ID 2013-08-09 11:18:24 -07:00
drivers spi: Add support for Winbod W25Q64DW 2013-09-20 00:52:20 +00:00
ec chromeec: Implement full battery workaround at 6% 2013-09-16 23:31:17 +00:00
include arm: libpayload: Add cache coherent DMA memory definition and management 2013-08-29 22:48:49 +00:00
lib ARMv7: get rmodule support to compile 2013-09-20 00:52:02 +00:00
mainboard bayleybay: add initial Bayley Bay board support 2013-09-20 18:40:52 +00:00
northbridge Falco/Slippy: Patch to refactor haswell/gma.c and mainboard/google/slippy/i915io.c 2013-08-23 17:16:24 -07:00
soc baytrail: add initial support 2013-09-20 18:40:49 +00:00
southbridge lynxpoint: xhci: Port reset changes on suspend/resume 2013-09-16 23:31:14 +00:00
superio Drop prototype guarding for romcc 2013-05-10 11:55:20 -07:00
vendorcode chromeos: Add code to read FMAP on ARM 2013-09-20 00:52:08 +00:00
Kconfig baytrail: add initial support 2013-09-20 18:40:49 +00:00