OVMS3-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 Initial public version 2016-08-17 23:08:22 +08:00
.gitmodules Initial public version 2016-08-17 23:08:22 +08:00
CMakeLists.txt cmake: remove intermediary libraries for some component 2019-12-11 16:43:47 +08:00
component.mk global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
COPYING.NEWLIB Initial public version 2016-08-17 23:08:22 +08:00
esp32-spiram-rom-functions-c.lf newlib: when compiling with GCC8, use newlib headers and libraries from toolchain 2019-04-10 13:52:30 +08:00
heap.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
Kconfig Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00
locks.c fix bug that semaphore may schedule out in Critical Section 2019-10-28 18:43:35 +08:00
Makefile.old Initial public version 2016-08-17 23:08:22 +08:00
newlib.lf newlib: when compiling with GCC8, use newlib headers and libraries from toolchain 2019-04-10 13:52:30 +08:00
poll.c VFS: Implement poll() based on select() 2019-02-25 10:34:27 +01:00
pread.c VFS: Implement pread() and pwrite() 2019-07-11 06:20:21 +00:00
project_include.cmake global: remove gcc 5.2 support 2019-11-20 11:17:27 +01:00
pthread.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
pwrite.c VFS: Implement pread() and pwrite() 2019-07-11 06:20:21 +00:00
random.c esp32: Add esp_fill_random() function 2018-09-03 04:39:45 +00:00
reent_init.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
select.c VFS: Fix Kconfig prefix 2019-07-02 17:17:18 +02:00
syscall_table.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
syscalls.c newlib: define fcntl as strong symbol 2019-12-11 14:53:26 +01:00
termios.c VFS: Fix Kconfig prefix 2019-07-02 17:17:18 +02:00
time.c Merge branch 'master' into feature/esp32s2beta_update 2019-08-08 15:26:58 +10:00
utime.c VFS: Implement utime() 2018-11-05 09:54:01 +01:00