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:
Carles Cufi 2022-05-26 12:58:01 +02:00 committed by Carles Cufí
parent 11da0b6f28
commit 56512dae8b
1 changed files with 1 additions and 0 deletions

View File

@ -129,4 +129,5 @@ no_fp:
1:
#endif /* CONFIG_FPU && CONFIG_FPU_SHARING */
/* Return to arch_switch() or _irq_wrapper() */
ret