esp-idf/components/freertos
Ivan Grokhotkov 891eb3b020 freertos: save/restore PS and EPC1 around window spilling
Since in b0491307, which has introduced the optimized window spill
procedure, _xt_context_save did not work correctly when called from
_xt_syscall_exc. This was because unlike _xt_lowint1, _xt_syscall_exc
does not save PS and EPC1. The new version of _xt_context_save
modified PS (on purpose) and EPC1 (accidentally, due to window
overflow exceptions), which resulted in a crash upon 'rfi' from the
syscall.

This commit adds restoring of PS and EPC1 in _xt_context_save. It also
slightly reduces the number of instructions used to prepare PS for
window spill.

Unit test for setjmp/longjmp (which were broken by this regression)
is added.

Closes https://github.com/espressif/esp-idf/issues/4541
2019-12-27 11:27:01 +01:00
..
include/freertos
test freertos: re-enable mutext test for esp32s2beta 2019-12-16 11:55:32 +05:30
CMakeLists.txt
FreeRTOS-openocd.c
Kconfig
component.mk
croutine.c
event_groups.c
license.txt
linker.lf
list.c
port.c
portasm.S
portmacro_priv.h
portmux_impl.h
portmux_impl.inc.h
queue.c
readme_xtensa.txt
sdkconfig.rename
stdint.readme
tasks.c
timers.c
xt_asm_utils.h
xtensa_context.S freertos: save/restore PS and EPC1 around window spilling 2019-12-27 11:27:01 +01:00
xtensa_init.c
xtensa_intr.c
xtensa_intr_asm.S
xtensa_overlay_os_hook.c
xtensa_vector_defaults.S
xtensa_vectors.S