zephyr/include/arch
Chris Coleman 99a268fa16 arch: arm: Collect full register state in Cortex-M Exception Stack Frame
To debug hard-to-reproduce faults/panics, it's helpful to get the full
register state at the time a fault occurred. This enables recovering
full backtraces and the state of local variables at the time of a
crash.

This PR introduces a new Kconfig option, CONFIG_EXTRA_EXCEPTION_INFO,
to facilitate this use case. The option enables the capturing of the
callee-saved register state (r4-r11 & exc_return) during a fault. The
info is forwarded to `k_sys_fatal_error_handler` in the z_arch_esf_t
parameter. From there, the data can be saved for post-mortem analysis.

To test the functionality a new unit test was added to
tests/arch/arm_interrupt which verifies the register contents passed
in the argument match the state leading up to a crash.

Signed-off-by: Chris Coleman <chris@memfault.com>
2020-08-31 10:13:27 +02:00
..
arc tracing: arc: depend on CONFIG_TRACING_ISR for ISRs 2020-08-24 13:21:12 +02:00
arm arch: arm: Collect full register state in Cortex-M Exception Stack Frame 2020-08-31 10:13:27 +02:00
common include: Implement API's for cache flush and cache invalidate 2020-07-15 15:53:26 -07:00
nios2 arches: centralize noinit linker defintiions 2020-07-30 21:11:14 -04:00
posix posix: linker: Wrap rodata and rwdata in sections. 2020-08-13 11:41:39 +02:00
riscv arches: centralize noinit linker defintiions 2020-07-30 21:11:14 -04:00
x86 x86: paging code rewrite 2020-08-25 15:49:59 -04:00
xtensa zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
arch_inlines.h headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
cpu.h arch: arm64: Introduce ARM64 (AArch64) architecture 2020-02-01 08:08:43 -05:00
syscall.h x86: add system call functions for 64-bit 2020-01-13 16:35:10 -05:00