arch/xtensa/src/esp32/esp32_spiflash.c: Fix the value of the page start

address.
It was incorrectly taken from the size.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-01-26 12:27:59 +01:00 committed by Alan Carvalho de Assis
parent 0261e58a8b
commit 6bf826acca

View File

@ -594,7 +594,7 @@ static void IRAM_ATTR spiflash_flushmapped(size_t start, size_t size)
uint32_t addr;
uint32_t page;
page_start = MMU_ALIGNDOWN_SIZE(size);
page_start = MMU_ALIGNDOWN_SIZE(start);
size += (start - page_start);
size = MMU_ALIGNUP_SIZE(size);