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:
parent
0261e58a8b
commit
6bf826acca
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user