Selaa lähdekoodia

feat(PowerManagement/lightsleep): Define and export a strong symbol of rv_core_critical_regs_restore

Lou Tianhao 2 vuotta sitten
vanhempi
sitoutus
34f8f1bb2c
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      components/esp_hw_support/sleep_cpu_asm.S

+ 7 - 0
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