mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-13 13:50:21 +00:00
update cache config
This commit is contained in:
@@ -147,7 +147,7 @@ void IRAM_ATTR call_start_cpu0(void)
|
||||
/* If we need use SPIRAM, we should use data cache, or if we want to access rodata, we also should use data cache.
|
||||
Configure the mode of data : cache size, cache associated ways, cache line size.
|
||||
Enable data cache, so if we don't use SPIRAM, it just works. */
|
||||
#if CONFIG_SPIRAM_BOOT_INIT || CONFIG_ESP32S2_RODATA_USE_DATA_CACHE
|
||||
#if CONFIG_SPIRAM_BOOT_INIT
|
||||
extern void esp_config_data_cache_mode(void);
|
||||
esp_config_data_cache_mode();
|
||||
Cache_Enable_DCache(0);
|
||||
@@ -169,12 +169,6 @@ void IRAM_ATTR call_start_cpu0(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Start to use data cache to access rodata. */
|
||||
#if CONFIG_ESP32S2_RODATA_USE_DATA_CACHE
|
||||
extern void esp_switch_rodata_to_dcache(void);
|
||||
esp_switch_rodata_to_dcache();
|
||||
#endif
|
||||
|
||||
ESP_EARLY_LOGI(TAG, "Pro cpu up.");
|
||||
ESP_EARLY_LOGI(TAG, "Single core mode");
|
||||
|
||||
|
Reference in New Issue
Block a user