diff --git a/arch/xtensa/src/esp32/esp32_cpustart.c b/arch/xtensa/src/esp32/esp32_cpustart.c index 795263c7360..8fa169d94c8 100644 --- a/arch/xtensa/src/esp32/esp32_cpustart.c +++ b/arch/xtensa/src/esp32/esp32_cpustart.c @@ -55,8 +55,8 @@ static volatile spinlock_t g_appcpu_interlock SP_SECTION; * ROM function prototypes ****************************************************************************/ -extern void Cache_Flush(int cpu); -extern void Cache_Read_Enable(int cpu); +extern void cache_flush(int cpu); +extern void cache_read_enable(int cpu); extern void ets_set_appcpu_boot_addr(uint32_t start); /**************************************************************************** @@ -277,8 +277,8 @@ int up_cpu_start(int cpu) /* Flush and enable I-cache for APP CPU */ - Cache_Flush(cpu); - Cache_Read_Enable(cpu); + cache_flush(cpu); + cache_read_enable(cpu); /* Unstall the APP CPU */ diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c index a4081b24612..489be180660 100644 --- a/arch/xtensa/src/esp32/esp32_spiflash.c +++ b/arch/xtensa/src/esp32/esp32_spiflash.c @@ -173,7 +173,7 @@ struct spiflash_cachestate_s * ROM function prototypes ****************************************************************************/ -extern void Cache_Flush(int cpu); +extern void cache_flush(int cpu); /**************************************************************************** * Private Functions Prototypes @@ -535,9 +535,9 @@ static void IRAM_ATTR spiflash_flushmapped(size_t start, size_t size) #ifdef CONFIG_ESP32_SPIRAM esp_spiram_writeback_cache(); #endif - Cache_Flush(0); + cache_flush(0); #ifdef CONFIG_SMP - Cache_Flush(1); + cache_flush(1); #endif } } @@ -1377,9 +1377,9 @@ static int IRAM_ATTR esp32_mmap(FAR struct esp32_spiflash_s *priv, #ifdef CONFIG_ESP32_SPIRAM esp_spiram_writeback_cache(); #endif - Cache_Flush(0); + cache_flush(0); #ifdef CONFIG_SMP - Cache_Flush(1); + cache_flush(1); #endif } @@ -1422,9 +1422,9 @@ static void IRAM_ATTR esp32_ummap(FAR struct esp32_spiflash_s *priv, #ifdef CONFIG_ESP32_SPIRAM esp_spiram_writeback_cache(); #endif - Cache_Flush(0); + cache_flush(0); #ifdef CONFIG_SMP - Cache_Flush(1); + cache_flush(1); #endif esp32_spiflash_opdone(&state); } diff --git a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld index 2333d20abaa..6088eeb708a 100644 --- a/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-devkitc/scripts/esp32_rom.ld @@ -60,10 +60,10 @@ PROVIDE ( btdm_r_plf_func_p_set = 0x40054288 ); PROVIDE ( bt_util_buf_env = 0x3ffb8bd4 ); PROVIDE ( bzero = 0x4000c1f4 ); PROVIDE ( cache_flash_mmu_set = 0x400095e0 ); -PROVIDE ( Cache_Flush = 0x40009a14 ); -PROVIDE ( Cache_Read_Disable = 0x40009ab8 ); -PROVIDE ( Cache_Read_Enable = 0x40009a84 ); -PROVIDE ( Cache_Read_Init = 0x40009950 ); +PROVIDE ( cache_flush = 0x40009a14 ); +PROVIDE ( cache_read_disable = 0x40009ab8 ); +PROVIDE ( cache_read_enable = 0x40009a84 ); +PROVIDE ( cache_read_init = 0x40009950 ); /* This is static function, but can be used, not generated by script*/ PROVIDE ( calc_rtc_memory_crc = 0x40008170 ); PROVIDE ( calloc = 0x4000bee4 ); diff --git a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld index 2333d20abaa..6088eeb708a 100644 --- a/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-ethernet-kit/scripts/esp32_rom.ld @@ -60,10 +60,10 @@ PROVIDE ( btdm_r_plf_func_p_set = 0x40054288 ); PROVIDE ( bt_util_buf_env = 0x3ffb8bd4 ); PROVIDE ( bzero = 0x4000c1f4 ); PROVIDE ( cache_flash_mmu_set = 0x400095e0 ); -PROVIDE ( Cache_Flush = 0x40009a14 ); -PROVIDE ( Cache_Read_Disable = 0x40009ab8 ); -PROVIDE ( Cache_Read_Enable = 0x40009a84 ); -PROVIDE ( Cache_Read_Init = 0x40009950 ); +PROVIDE ( cache_flush = 0x40009a14 ); +PROVIDE ( cache_read_disable = 0x40009ab8 ); +PROVIDE ( cache_read_enable = 0x40009a84 ); +PROVIDE ( cache_read_init = 0x40009950 ); /* This is static function, but can be used, not generated by script*/ PROVIDE ( calc_rtc_memory_crc = 0x40008170 ); PROVIDE ( calloc = 0x4000bee4 ); diff --git a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld index 2333d20abaa..6088eeb708a 100644 --- a/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld +++ b/boards/xtensa/esp32/esp32-wrover-kit/scripts/esp32_rom.ld @@ -60,10 +60,10 @@ PROVIDE ( btdm_r_plf_func_p_set = 0x40054288 ); PROVIDE ( bt_util_buf_env = 0x3ffb8bd4 ); PROVIDE ( bzero = 0x4000c1f4 ); PROVIDE ( cache_flash_mmu_set = 0x400095e0 ); -PROVIDE ( Cache_Flush = 0x40009a14 ); -PROVIDE ( Cache_Read_Disable = 0x40009ab8 ); -PROVIDE ( Cache_Read_Enable = 0x40009a84 ); -PROVIDE ( Cache_Read_Init = 0x40009950 ); +PROVIDE ( cache_flush = 0x40009a14 ); +PROVIDE ( cache_read_disable = 0x40009ab8 ); +PROVIDE ( cache_read_enable = 0x40009a84 ); +PROVIDE ( cache_read_init = 0x40009950 ); /* This is static function, but can be used, not generated by script*/ PROVIDE ( calc_rtc_memory_crc = 0x40008170 ); PROVIDE ( calloc = 0x4000bee4 );