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:
Dong Heng
2018-08-09 19:47:52 +08:00
parent 03be34e550
commit f602793a33
5 changed files with 15 additions and 50 deletions

View File

@ -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();