coreboot/payloads/libpayload/arch/armv7
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
..
assembler.h
cache.c arm: libpayload: Make cache invalidation take pointers instead of integers 2013-08-29 22:48:54 +00:00
Config.in libpayload: Make the region to scan for the cb tables configurable. 2013-06-20 02:14:21 -07:00
coreboot.c arm: libpayload: Add cache coherent DMA memory definition and management 2013-08-29 22:48:49 +00:00
dummy_media.c libpayload: provide missing cbfs symbol 2013-05-28 10:38:56 -07:00
exception.c armv7: Support stack dump after exceptions 2013-09-23 19:28:41 +00:00
exception_asm.S armv7: Support stack dump after exceptions 2013-09-23 19:28:41 +00:00
head.S libpayload: Move over to the payload's stack during startup 2013-03-13 23:41:23 +01:00
libpayload.ldscript libpayload: add a ldscript for arm 2013-02-15 01:13:11 +01:00
main.c libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
Makefile.inc libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
memcpy.S ARM: Tell the linker memset and memcpy are functions. 2013-06-14 18:16:58 -07:00
memset.S ARM: Tell the linker memset and memcpy are functions. 2013-06-14 18:16:58 -07:00
sysinfo.c
timer.c libpayload: Generalize and redistribute timekeeping code 2013-03-14 04:53:33 +01:00
util.S libpayload: Mark "halt" as a function. 2013-03-01 16:49:41 +01:00
virtual.c