mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
fix(esp_system): writeback L1 Dcache before disable L2 if PSRAM used
This commit is contained in:
@@ -126,6 +126,9 @@ void IRAM_ATTR esp_restart_noos(void)
|
|||||||
wdt_hal_write_protect_enable(&wdt1_context);
|
wdt_hal_write_protect_enable(&wdt1_context);
|
||||||
|
|
||||||
// Disable cache
|
// Disable cache
|
||||||
|
#if CONFIG_SPIRAM
|
||||||
|
Cache_WriteBack_All(CACHE_MAP_L1_DCACHE);
|
||||||
|
#endif
|
||||||
Cache_Disable_L2_Cache();
|
Cache_Disable_L2_Cache();
|
||||||
|
|
||||||
esp_system_reset_modules_on_exit();
|
esp_system_reset_modules_on_exit();
|
||||||
|
Reference in New Issue
Block a user