esp32c3: format and clean up interrupt and os port code

This commit is contained in:
morris
2020-12-29 12:31:54 +08:00
parent 72e4655d4e
commit 9e7d2c0065
12 changed files with 111 additions and 110 deletions

View File

@@ -23,7 +23,7 @@ esp_shared_stack_invoke_function:
/* Set shared stack as new stack pointer */
mv sp, a1
/* store the ra and previous stack pointer in a safe place */
addi sp,sp,-4
sw t0, 0(sp)
@@ -33,11 +33,11 @@ esp_shared_stack_invoke_function:
jalr a0, 0
/* gets the ra and stack pointer saved previously */
lw t0, 0(sp)
lw t0, 0(sp)
lw t1, 4(sp)
addi sp, sp, 4
/* restore both ra and real stack pointer of current task */
mv ra, t1
mv ra, t1
mv sp, t0
ret