diff --git a/components/esp_hw_support/sleep_cpu_asm.S b/components/esp_hw_support/sleep_cpu_asm.S index b84dd4d421..65d0e6de06 100644 --- a/components/esp_hw_support/sleep_cpu_asm.S +++ b/components/esp_hw_support/sleep_cpu_asm.S @@ -166,9 +166,16 @@ wait_sync_done: .section .iram1,"ax" .global rv_core_critical_regs_restore + .weak rv_core_critical_regs_restore .type rv_core_critical_regs_restore,@function + .global _rv_core_critical_regs_restore + .type _rv_core_critical_regs_restore,@function .align 4 +_rv_core_critical_regs_restore: /* export a strong symbol to jump to here, used + * for a static callback */ + nop + rv_core_critical_regs_restore: la t0, rv_core_critical_regs_frame