mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-24 20:51:49 +08:00
fix(startup): Fix cached data is cleared by function of "clean bss"
APP should not cache data whick is passed by bootloader linked to bss section.
This commit is contained in:
@@ -229,11 +229,12 @@ static void IRAM_ATTR Cache_Read_Disable_2(void)
|
||||
CLEAR_PERI_REG_MASK(PERIPHS_SPI_FLASH_CTRL,SPI_ENABLE_AHB);
|
||||
}
|
||||
|
||||
static void IRAM_ATTR Cache_Read_Enable_2()
|
||||
void IRAM_ATTR Cache_Read_Enable_2()
|
||||
{
|
||||
SET_PERI_REG_MASK(PERIPHS_SPI_FLASH_CTRL,SPI_ENABLE_AHB);
|
||||
SET_PERI_REG_MASK(CACHE_FLASH_CTRL_REG,CACHE_READ_EN_BIT);
|
||||
}
|
||||
void Cache_Read_Enable_New(void) __attribute__((alias("Cache_Read_Enable_2")));
|
||||
|
||||
static uint32_t IRAM_ATTR spi_flash_get_id(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user