mirror of
https://github.com/espressif/esp-idf
synced 2025-03-31 03:41:07 -04:00
Merge branch 'fix/mmu_func_force_inline_v5.3' into 'release/v5.3'
fix(mmu_map): make a static function force inline in order not be put in flash(backport v5.3) See merge request espressif/esp-idf!32574
This commit is contained in:
commit
0c03c2008e
@ -186,7 +186,7 @@ static void s_reserve_drom_region(mem_region_t *hw_mem_regions, int region_nums)
|
|||||||
#endif //#if CONFIG_APP_BUILD_USE_FLASH_SECTIONS
|
#endif //#if CONFIG_APP_BUILD_USE_FLASH_SECTIONS
|
||||||
|
|
||||||
#if SOC_MMU_PER_EXT_MEM_TARGET
|
#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;
|
return (target == MMU_TARGET_FLASH0) ? MMU_LL_FLASH_MMU_ID : MMU_LL_PSRAM_MMU_ID;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user