mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 06:03:12 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue