You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/06/13 18:01:13 UTC

[nuttx] branch master updated: riscv/vfork: Replace jal with call for long jump

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 84f4cf9b9d riscv/vfork: Replace jal with call for long jump
84f4cf9b9d is described below

commit 84f4cf9b9da5f0b7d9ddaf62298f9999177ca37c
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Tue Jun 13 17:38:28 2023 +0800

    riscv/vfork: Replace jal with call for long jump
    
    Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
 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 d4283457ad..f0868b6ca2 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 */