esp-idf/components/esp_mm
Armando 98892a3288 esp_mm: correct mmap reserved irom and drom size
Prior to this commit, we don't consider the offset of the irom vaddr
start.

If the offset + size is bigger than the MMU page size, for example:
MMU page size: 0x10000
irom vaddr: 0x4200_0800, so offset = 0x800
irom size: 0xF900
offset + size = 0x10100

Under this condition, the 0x4200_0000 ~ 0x4202_0000, two MMU pages are
used.

With this commit, when reserving the irom and drom, we take the offset
into consideration as well.
2023-02-07 20:23:53 +08:00
..
include esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
port esp_mm: h2 support 2023-02-07 20:23:53 +08:00
test_apps/mmap esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
CMakeLists.txt esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
esp_mmu_map.c esp_mm: correct mmap reserved irom and drom size 2023-02-07 20:23:53 +08:00
ext_mem_layout.h esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
Kconfig esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00
Kconfig.mmap esp_mm: new virtual memory mapping apis via mmu 2023-02-07 20:23:52 +08:00