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:
parent
367ec2068b
commit
c230edea29
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user