mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
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:
committed by
Abdelatif Guettouche
parent
367ec2068b
commit
c230edea29
@@ -1419,6 +1419,9 @@ static void IRAM_ATTR esp32_ummap(FAR struct esp32_spiflash_s *priv,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_ESP32_SPIRAM
|
||||||
|
esp_spiram_writeback_cache();
|
||||||
|
#endif
|
||||||
Cache_Flush(0);
|
Cache_Flush(0);
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
Cache_Flush(1);
|
Cache_Flush(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user