zephyr/arch/arm/include/cortex_m
Andrew Boie 75caa2b084 arm: exception-assisted kernel panic/oops support
Put the reason code in r0 and make a SVC #2 call, which will be
propagated to _fatal_error_handler as an exception.

The _is_in_isr() implementation had to be tweaked a bit.  User-generated
SVC exception no longer just used for irq_offload(); just because we are
in it does not mean we are in interrupt context.  Instead, have the
irq_offload code set and clear the offload_routine global; it will be
non-NULL only if it's in use. Upcoming changes to support memory
protection (which will require system calls) will need this too.

We free up some small amount of ROM deleting _default_esf struct as it's
no longer needed.

Issue: ZEP-843
Change-Id: Ie82bd708575934cffe41e64f5c128c8704ca4e48
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-04-22 10:31:49 -04:00
..
asm_inline_gcc.h arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00
exc.h arm: exception-assisted kernel panic/oops support 2017-04-22 10:31:49 -04:00
stack.h arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00