Merge branch 'bugfix/can_mmap_after_get_enough_free_mmu_pages' into 'master'

flash_mmap: can mmap after get enough free MMU pages

Closes IDFCI-49 and IDFCI-84

See merge request espressif/esp-idf!9728
pull/5682/merge
Jiang Jiang Jian 2020-09-23 21:03:53 +08:00
commit b626e306da
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -215,6 +215,7 @@ esp_err_t IRAM_ATTR spi_flash_mmap_pages(const int *pages, size_t page_count, sp
uint32_t region_addr; // base address of memory region
get_mmu_region(memory,&region_begin,&region_size,&region_addr);
if (region_size < page_count) {
spi_flash_enable_interrupts_caches_and_other_cpu();
return ESP_ERR_NO_MEM;
}
// The following part searches for a range of MMU entries which can be used.