zephyr/arch/xtensa/core
Mazen NEIFER 51eb081311 xtensa port: Fixed crash on interrupt handlers when logger is enabled.
This fixes ZEP-1955. The issue was that the interrupt stack frame only
allocates 4 registers. This means that if any window overflow happens,
only 4 registers can be saved. This implies that the interrupt handler
can not call functions other than using call4. If this rule is not
honored, then it will result in the registers being overwriting other
context information and thus a stack corruption.

The fix consists on using call4 for calling even t logger function,
which is by the way more optimal as the interrupt handler does not need
to save more than 4 registers when these functions are called.

Issue: ZEP-1955

Change-Id: Iacea626443d1d61d95a52253ac8ff15fc3722d2c
Signed-off-by: Mazen NEIFER <mazen@nestwave.com>
2017-04-28 15:49:01 +00:00
..
offsets xtensa port: Clear the CP descriptor of new created thread. 2017-04-20 16:01:55 +00:00
startup xtensa: use -mlongcalls instead of --longcalls 2017-04-13 20:33:28 +00:00
Makefile xtensa: use -mlongcalls instead of --longcalls 2017-04-13 20:33:28 +00:00
atomic.S xtensa: fix numerous checkpatch issues 2017-02-13 11:39:03 -08:00
cpu_idle.c kernel: remove all remaining references to nanokernel 2017-04-10 20:21:10 +00:00
crt1-boards.S xtensa: fix numerous checkpatch issues 2017-02-13 11:39:03 -08:00
crt1-sim.S xtensa: fix numerous checkpatch issues 2017-02-13 11:39:03 -08:00
fatal.c kernel: add k_panic() and k_oops() APIs 2017-04-22 10:31:49 -04:00
irq_manage.c arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00
irq_offload.c kernel: remove all remaining references to nanokernel 2017-04-10 20:21:10 +00:00
sw_isr_table.S Xtensa port: Added Xtensa specific code (C + S) files. 2017-02-13 08:04:27 -08:00
swap.S kernel: tickless: Rename _Swap to allow creation of macro 2017-04-27 13:46:26 +00:00
thread.c xtensa port: Fixed compilation error introduced by recent changes. 2017-04-24 20:41:46 +00:00
xt_zephyr.S xtensa port: Fixed crash on startup on CP enabled cores 2017-04-13 11:54:49 -07:00
xtensa_context.S xtensa: fix numerous checkpatch issues 2017-02-13 11:39:03 -08:00
xtensa_intr.c Xtensa port: Added Xtensa specific code (C + S) files. 2017-02-13 08:04:27 -08:00
xtensa_intr_asm.S Xtensa port: Added Xtensa specific code (C + S) files. 2017-02-13 08:04:27 -08:00
xtensa_vectors.S xtensa port: Fixed crash on interrupt handlers when logger is enabled. 2017-04-28 15:49:01 +00:00