OVMS3-idf/components/newlib/test
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
..
CMakeLists.txt components: use new component registration api 2019-06-21 19:53:29 +08:00
component.mk add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_newlib.c newlib: add definitions of system, raise 2019-12-11 14:52:51 +01:00
test_setjmp.c freertos: save/restore PS and EPC1 around window spilling 2019-12-27 11:27:01 +01:00
test_time.c Merge branch 'feature/esp32s2beta' into feature/esp32s2beta_merge 2019-10-15 15:03:45 +11:00