Selaa lähdekoodia

Merge branch 'bugfix/fix_context_switch_ra' into 'master'

freerots: fix rtos_int_exit writing outside ISR stack

See merge request espressif/esp-idf!12161
Angus Gratton 5 vuotta sitten
vanhempi
sitoutus
8d60683b08
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      components/freertos/port/riscv/portasm.S

+ 2 - 2
components/freertos/port/riscv/portasm.S

@@ -90,9 +90,9 @@ isr_skip_decrement:
 
     /* preserve return address and schedule next task */
     addi sp,sp,-4
-    sw  ra, 0x04(sp)
+    sw  ra, 0(sp)
     call vTaskSwitchContext
-    lw  ra, 0x04(sp)
+    lw  ra, 0(sp)
     addi sp, sp, 4
 
     /* Clears the switch pending flag */