fix(esp_system): writeback L1 Dcache before disable L2 if PSRAM used

This commit is contained in:
wuzhenghui 2024-11-08 18:44:14 +08:00
parent f15c1b4c4f
commit 9a41a61dd5
No known key found for this signature in database
GPG Key ID: 3EFEDECDEBA39BB9

View File

@ -127,6 +127,9 @@ void IRAM_ATTR esp_restart_noos(void)
wdt_hal_write_protect_enable(&wdt1_context);
// Disable cache
#if CONFIG_SPIRAM
Cache_WriteBack_All(CACHE_MAP_L1_DCACHE);
#endif
Cache_Disable_L2_Cache();
esp_system_reset_modules_on_exit();