zephyr/include/arch
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
..
arc kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
arm arm: exception-assisted kernel panic/oops support 2017-04-22 10:31:49 -04:00
nios2 kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
riscv32 kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
x86 x86: exception-assisted panic/oops support 2017-04-22 10:31:49 -04:00
xtensa kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
cpu.h Xtensa port: Added support in arch/cpu.h for Xtensa cores. 2017-02-13 08:04:27 -08:00