feat(mmu): supported find paddr caps by any paddr offset

Closes https://github.com/espressif/esp-idf/issues/14988
This commit is contained in:
Armando 2025-02-10 15:03:28 +08:00
parent 4c281f8eee
commit caca62543b

View File

@ -351,7 +351,7 @@ IRAM_ATTR esp_err_t esp_mmu_paddr_find_caps(const esp_paddr_t paddr, mmu_mem_cap
}
//now we are only traversing the actual dynamically allocated blocks, dummy_head and dummy_tail are excluded already
if (mem_block->paddr_start == paddr) {
if (paddr >= mem_block->paddr_start && paddr < mem_block->paddr_end) {
found = true;
found_block = mem_block;
break;