Skip to content

Commit 0cca453

Browse files
committed
fix(mmu_map): make a static function force inline in order not be put in flash
1 parent 7ccfd7d commit 0cca453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_mm/esp_mmu_map.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static void s_reserve_drom_region(mem_region_t *hw_mem_regions, int region_nums)
186186
#endif //#if CONFIG_APP_BUILD_USE_FLASH_SECTIONS
187187

188188
#if SOC_MMU_PER_EXT_MEM_TARGET
189-
static inline uint32_t s_get_mmu_id_from_target(mmu_target_t target)
189+
FORCE_INLINE_ATTR uint32_t s_get_mmu_id_from_target(mmu_target_t target)
190190
{
191191
return (target == MMU_TARGET_FLASH0) ? MMU_LL_FLASH_MMU_ID : MMU_LL_PSRAM_MMU_ID;
192192
}

0 commit comments

Comments
 (0)