From c60257e8629aee90a68404356b35a9ea0d97ce32 Mon Sep 17 00:00:00 2001 From: Armando Date: Thu, 1 Dec 2022 21:39:57 +0800 Subject: [PATCH] bootloader: fix bootloader_sha256_flash_contents mmap issue --- .../bootloader_flash/include/bootloader_flash_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bootloader_support/bootloader_flash/include/bootloader_flash_priv.h b/components/bootloader_support/bootloader_flash/include/bootloader_flash_priv.h index 9045b0865544..dd1df35c7084 100644 --- a/components/bootloader_support/bootloader_flash/include/bootloader_flash_priv.h +++ b/components/bootloader_support/bootloader_flash/include/bootloader_flash_priv.h @@ -20,7 +20,7 @@ extern "C" { #define FLASH_SECTOR_SIZE 0x1000 #define FLASH_BLOCK_SIZE 0x10000 -#define MMAP_ALIGNED_MASK 0x0000FFFF +#define MMAP_ALIGNED_MASK (SPI_FLASH_MMU_PAGE_SIZE - 1) #define MMU_FLASH_MASK (~(SPI_FLASH_MMU_PAGE_SIZE - 1)) /**