esp-idf/components/freertos/test
Ivan Grokhotkov cf5ef7f0e1 freertos: don't clobber a4 while spilling register windows
Commit 891eb3b0 was fixing an issue with PS and EPC1 not being
preserved after the window spill procedure. It did so by saving PS in
a2 and EPC1 in a4. However the a4 register may be a live register of
another window in the call stack, and if it is overwritten and then
spilled to the stack, then the corresponding register value will end
up being corrupted. In practice the problem would show up as an
IllegalInstruction exception, when trying to return from a function
when a0 value was 0x40020.
Fix by using a0 register instead of a4 as scratch. Also fix a comment
about xthal_save_extra_nw, as this function in fact doesn't clobber
a4 or a5 because XCHAL_NCP_NUM_ATMPS is defined as 1.

Closes https://github.com/espressif/esp-idf/issues/5758
2020-11-11 14:43:15 +00:00
..
CMakeLists.txt ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
component.mk ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_context_save_clobber_asm.S freertos: don't clobber a4 while spilling register windows 2020-11-11 14:43:15 +00:00
test_context_save_clobber.c freertos: don't clobber a4 while spilling register windows 2020-11-11 14:43:15 +00:00
test_freertos_backported_functions.c Fix remaining -Wstrict-prototypes warnings 2019-08-01 16:28:56 +07:00
test_freertos_debug_functions.c unity: separate common and IDF specific functionality 2018-11-19 12:36:31 +08:00
test_freertos_eventgroups.c feat(timer): refator timer group driver 2019-11-21 14:14:19 +08:00
test_freertos_get_state.c unity: separate common and IDF specific functionality 2018-11-19 12:36:31 +08:00
test_freertos_isinisrcontext.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_freertos_mutex.c freertos: re-enable mutext test for esp32s2beta 2019-12-16 11:55:32 +05:30
test_freertos_task_delay_until.c ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_freertos_task_delete.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_freertos_task_notify.c feat(timer): refator timer group driver 2019-11-21 14:14:19 +08:00
test_freertos_trace_utilities.c unity: separate common and IDF specific functionality 2018-11-19 12:36:31 +08:00
test_isr_latency.c freertos/tests: fixed wrong header file on isr latency test 2019-12-04 10:41:00 -03:00
test_newlib_reent.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_panic.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_preemption.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_queuesets.c freertos: Add critical sections to queue sets. 2018-07-13 13:58:54 +08:00
test_spinlocks.c freertos: pass unit tests compilation 2019-06-12 17:13:29 +08:00
test_suspend_scheduler.c timer_group: update hal api && fix intr_enable 2020-04-29 12:19:25 +08:00
test_task_priorities.c unity: separate common and IDF specific functionality 2018-11-19 12:36:31 +08:00
test_task_suspend_resume.c Fix issue with timer usage in FreeRTOS tests 2019-12-09 13:33:45 +05:30
test_tasks_snapshot.c test: Fix some unused identifier warnings 2018-12-10 12:34:16 +08:00
test_thread_local.c ut: Move tests back from "esp32" subfolder 2020-01-06 17:13:53 +08:00
test_timers.c Unit tests: Add FreeRTOS timer tests 2017-05-05 14:38:15 +10:00