arch: riscv: switch: Add a comment on the return of z_riscv_switch
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 <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
11da0b6f28
commit
56512dae8b
|
@ -129,4 +129,5 @@ no_fp:
|
|||
1:
|
||||
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
|
||||
|
||||
/* Return to arch_switch() or _irq_wrapper() */
|
||||
ret
|
||||
|
|
Loading…
Reference in New Issue