This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 6bf826a arch/xtensa/src/esp32/esp32_spiflash.c: Fix the value of the page start address. It was incorrectly taken from the size. 6bf826a is described below commit 6bf826acca2e659394d2f045696a093ecc7b2858 Author: Abdelatif Guettouche <abdelatif.guettou...@espressif.com> AuthorDate: Tue Jan 26 12:27:59 2021 +0100 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.guettou...@espressif.com> --- arch/xtensa/src/esp32/esp32_spiflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/src/esp32/esp32_spiflash.c b/arch/xtensa/src/esp32/esp32_spiflash.c index cde3e6a..96c21ca 100644 --- a/arch/xtensa/src/esp32/esp32_spiflash.c +++ b/arch/xtensa/src/esp32/esp32_spiflash.c @@ -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);