esp-idf/components
Ivan Grokhotkov 4676d159ad spi_flash: fix race condition when doing operations in unpinned tasks
spi_flash_enable_interrupts_caches_and_other_cpu function used to enable
non-IRAM interrupts after giving up flash operation lock, which would
cause problems if another task was waiting on the lock to start a flash
operation. In fact, non-IRAM interrupts should be re-enabled before the
task scheduler is resumed. Otherwise non-pinned task can be moved to the
other CPU due to preemption, causing esp_intr_noniram_enable to be
called on the other CPU, causing an abort to be triggered.

Fixes the issue reported in
https://github.com/espressif/esp-idf/pull/258
2017-01-18 15:07:27 +08:00
..
2016-12-29 17:37:17 +08:00
2017-01-11 15:03:14 +08:00
2017-01-16 02:37:10 +08:00
2017-01-16 17:06:12 +08:00
2016-11-16 15:57:34 +11:00
2017-01-09 05:54:04 +08:00
2017-01-04 19:27:58 +08:00
2017-01-09 17:51:48 +08:00
2017-01-13 12:12:43 +02:00
2017-01-09 05:54:04 +08:00
2017-01-16 11:33:32 +08:00