]> granicus.if.org Git - esp-idf/commit
spi_flash: fix stale read issue for memory mapped partition
authorMahavir Jain <mahavir@espressif.com>
Fri, 8 Mar 2019 05:30:49 +0000 (11:00 +0530)
committerbot <bot@espressif.com>
Wed, 13 Mar 2019 05:38:01 +0000 (05:38 +0000)
commit2752654043fd14cb8f2b759ee9409c6c5942c157
treeff9775bff43d8b6c4a61e4e6a8d4bfc9b5fa5d7c
parentfa5bc5d58bf8ddf3eb737ebe24c2875e72106f5f
spi_flash: fix stale read issue for memory mapped partition

On flash program operation (either erase or write), if corresponding address has
cache mapping present then cache is explicitly flushed (for both pro and app cpu)

Closes https://github.com/espressif/esp-idf/issues/2146
components/spi_flash/cache_utils.h
components/spi_flash/flash_mmap.c
components/spi_flash/flash_ops.c
components/spi_flash/sim/flash_mock_util.c