From 7c08d417d2be3e40856ca5b961fb4f347cf9ee5d Mon Sep 17 00:00:00 2001 From: "C.S.M" Date: Fri, 2 Aug 2024 15:48:37 +0800 Subject: [PATCH] fix(mmu_map): make a static function force inline in order not be put in flash --- 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 743bdb1098..c2b8be1beb 100644 --- a/components/esp_mm/esp_mmu_map.c +++ b/components/esp_mm/esp_mmu_map.c @@ -187,7 +187,7 @@ static void s_reserve_drom_region(mem_region_t *hw_mem_regions, int region_nums) #endif //#if CONFIG_APP_BUILD_USE_FLASH_SECTIONS #if SOC_MMU_PER_EXT_MEM_TARGET -static inline uint32_t s_get_mmu_id_from_target(mmu_target_t target) +FORCE_INLINE_ATTR uint32_t s_get_mmu_id_from_target(mmu_target_t target) { return (target == MMU_TARGET_FLASH0) ? MMU_LL_FLASH_MMU_ID : MMU_LL_PSRAM_MMU_ID; }