mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-27 01:16:27 +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:
@ -34,7 +34,7 @@ static const char *TAG = "chip_boot";
|
||||
* @brief initialize the chip including flash I/O and chip cache according to
|
||||
* boot parameters which are stored at the flash
|
||||
*/
|
||||
void chip_boot(size_t start_addr, size_t map)
|
||||
void chip_boot(size_t start_addr)
|
||||
{
|
||||
int ret;
|
||||
uint32_t freqdiv, flash_size;
|
||||
@ -91,9 +91,6 @@ void chip_boot(size_t start_addr, size_t map)
|
||||
}
|
||||
SET_PERI_REG_BITS(PERIPHS_SPI_FLASH_CTRL, 0xfff, freqbits, 0);
|
||||
|
||||
ESP_EARLY_LOGD(TAG, "SPI flash cache map is %d\n", map);
|
||||
cache_init(map);
|
||||
|
||||
if (fhdr.spi_mode == ESP_IMAGE_SPI_MODE_QIO) {
|
||||
ESP_EARLY_LOGD(TAG, "SPI flash enable QIO mode\n");
|
||||
user_spi_flash_dio_to_qio_pre_init();
|
||||
|
Reference in New Issue
Block a user