From caca62543be2b634c20a966b9fe80296e493f6e2 Mon Sep 17 00:00:00 2001 From: Armando Date: Mon, 10 Feb 2025 15:03:28 +0800 Subject: [PATCH] feat(mmu): supported find paddr caps by any paddr offset Closes https://github.com/espressif/esp-idf/issues/14988 --- components/esp_mm/esp_mmu_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_mm/esp_mmu_map.c b/components/esp_mm/esp_mmu_map.c index 765813383e..735e81c605 100644 --- a/components/esp_mm/esp_mmu_map.c +++ b/components/esp_mm/esp_mmu_map.c @@ -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;