fix(pm): place extra link opt in iram

This commit is contained in:
cjin 2023-12-04 14:46:10 +08:00
parent c4819658a2
commit 797edb54fa
3 changed files with 5 additions and 5 deletions

View File

@ -88,18 +88,18 @@ void IRAM_ATTR pau_regdma_trigger_system_link_restore(void)
}
#endif
void pau_regdma_set_extra_link_addr(void *link_addr)
void IRAM_ATTR pau_regdma_set_extra_link_addr(void *link_addr)
{
pau_hal_set_regdma_extra_link_addr(PAU_instance()->hal, link_addr);
}
void pau_regdma_trigger_extra_link_backup(void)
void IRAM_ATTR pau_regdma_trigger_extra_link_backup(void)
{
pau_hal_start_regdma_extra_link(PAU_instance()->hal, true);
pau_hal_stop_regdma_extra_link(PAU_instance()->hal);
}
void pau_regdma_trigger_extra_link_restore(void)
void IRAM_ATTR pau_regdma_trigger_extra_link_restore(void)
{
pau_hal_start_regdma_extra_link(PAU_instance()->hal, false);
pau_hal_stop_regdma_extra_link(PAU_instance()->hal);

View File

@ -432,7 +432,7 @@ void sleep_modem_unregister_mac_bb_module_prepare_callback(mac_bb_power_down_cb_
* @param cpu_freq_mhz cpu frequency to do retention
* @param do_retention function for retention
*/
static void rtc_clk_cpu_freq_to_pll_mhz_and_do_retention(bool backup, int cpu_freq_mhz, void (*do_retention)(bool))
static void IRAM_ATTR rtc_clk_cpu_freq_to_pll_mhz_and_do_retention(bool backup, int cpu_freq_mhz, void (*do_retention)(bool))
{
#if SOC_PM_SUPPORT_PMU_MODEM_STATE
if (pmu_sleep_pll_already_enabled()) {

View File

@ -499,7 +499,7 @@ uint32_t IRAM_ATTR sleep_retention_get_modules(void)
}
#if SOC_PM_RETENTION_HAS_CLOCK_BUG
void sleep_retention_do_extra_retention(bool backup_or_restore)
void IRAM_ATTR sleep_retention_do_extra_retention(bool backup_or_restore)
{
if (s_retention.highpri < SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY ||
s_retention.highpri > SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {