]> granicus.if.org Git - esp-idf/commit
bootloader: account for load address when mapping cache pages
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 3 Sep 2018 10:15:20 +0000 (18:15 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 23 Jan 2019 09:06:11 +0000 (17:06 +0800)
commit205c484c494e052fd9120ce259992b0947e7c6e7
treecd0495e3e631461e4024e5cf179230b25c666a2b
parent60f4ccf3031b121b6bc481c682c6608fe2b6d661
bootloader: account for load address when mapping cache pages

Bootloader used to calculate the number of cache pages assuming that
load address was aligned, while in reality load address for DROM and
IROM was offset by 0x20 bytes from the start of 64kB page. This
caused the bootloader to map one less page if the size of the image
was 0x4..0x1c less than a multiple of 64kB.

Reported in https://esp32.com/viewtopic.php?f=13&t=6952.
components/bootloader_support/include_priv/bootloader_flash.h
components/bootloader_support/src/bootloader_flash.c
components/bootloader_support/src/bootloader_utility.c