From 84f4cf9b9da5f0b7d9ddaf62298f9999177ca37c Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Tue, 13 Jun 2023 17:38:28 +0800 Subject: [PATCH] riscv/vfork: Replace jal with call for long jump Signed-off-by: Huang Qi --- arch/risc-v/src/common/vfork.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/common/vfork.S b/arch/risc-v/src/common/vfork.S index d4283457ad4..f0868b6ca22 100644 --- a/arch/risc-v/src/common/vfork.S +++ b/arch/risc-v/src/common/vfork.S @@ -139,7 +139,7 @@ vfork: /* Then, call up_vfork(), passing it a pointer to the stack frame */ mv a0, sp - jal x1, up_vfork + call up_vfork /* Release the stack frame and return the value returned by up_vfork */