Skip to content

Commit

Permalink
arch: riscv: switch: Add a comment on the return of z_riscv_switch
Browse files Browse the repository at this point in the history
When returning from z_riscv_switch, depending on whether the thread that
has just been swapped in was earlier swapped out synchronously (i.e. via
regular function call) or asynchronously (i.e. via exception/irq) we
will return to arch_switch() or __irq_wrapper respectively. Comment this
fact for clarity.

Signed-off-by: Carles Cufi <[email protected]>
  • Loading branch information
carlescufi committed May 26, 2022
1 parent 11da0b6 commit 56512da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/core/switch.S
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ no_fp:
1:
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */

/* Return to arch_switch() or _irq_wrapper() */
ret

0 comments on commit 56512da

Please sign in to comment.