]> 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:13:30 +0000 (17:13 +0800)
commitb6113eb73b18ee7e826d3c8cf7e72be7d2c91104
treeab97cfe1f4bc5045171500beb99e1ad3f4a56637
parent3a88249180dd2d55fb56c50bbb380778942d388b
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/subproject/main/bootloader_start.c
components/bootloader_support/include_priv/bootloader_flash.h
components/bootloader_support/src/bootloader_flash.c