esp32_ummap: write back spiram cache before calling Cache_Flush

This seems to fix esp32_readdata_encrypted() with spiram "buffer".

Note: I'm not sure if this is the right fix or not.
I couldn't find any documentation about Cache_Flush.
This commit is contained in:
YAMAMOTO Takashi 2021-03-02 12:50:19 +09:00 committed by Abdelatif Guettouche
parent 367ec2068b
commit c230edea29

View File

@ -1419,6 +1419,9 @@ static void IRAM_ATTR esp32_ummap(FAR struct esp32_spiflash_s *priv,
#endif
}
#ifdef CONFIG_ESP32_SPIRAM
esp_spiram_writeback_cache();
#endif
Cache_Flush(0);
#ifdef CONFIG_SMP
Cache_Flush(1);