From 56512dae8bd7dec89cd5d200de841ce70dcf35c4 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Thu, 26 May 2022 12:58:01 +0200 Subject: [PATCH] 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 --- arch/riscv/core/switch.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/core/switch.S b/arch/riscv/core/switch.S index a1423428c81..17f6194790a 100644 --- a/arch/riscv/core/switch.S +++ b/arch/riscv/core/switch.S @@ -129,4 +129,5 @@ no_fp: 1: #endif /* CONFIG_FPU && CONFIG_FPU_SHARING */ + /* Return to arch_switch() or _irq_wrapper() */ ret