esp-idf/components/newlib
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
..
platform_include global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
test freertos: save/restore PS and EPC1 around window spilling 2019-12-27 11:27:01 +01:00
.gitignore
.gitmodules
CMakeLists.txt cmake: remove intermediary libraries for some component 2019-12-11 16:43:47 +08:00
COPYING.NEWLIB
Kconfig
Makefile.old
component.mk global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
esp32-spiram-rom-functions-c.lf
heap.c
locks.c
newlib.lf
poll.c
pread.c
project_include.cmake global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
pthread.c
pwrite.c
random.c
reent_init.c
select.c
syscall_table.c
syscalls.c newlib: define fcntl as strong symbol 2019-12-11 14:53:26 +01:00
termios.c
time.c
utime.c