]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Avoid updating the link register
authorBin Meng <bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:06 +0000 (14:20 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000 (20:45 +0800)
board_init_r does not return for U-Boot SPL hence there is no need
to update the link register when jumping to board_init_r.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/start.S

index c09d1cb41259dbd00d1b4e3465c5fc093c2da2d3..8cf25bb14a6ecb6fe1fa1042138b23cb9ecad608 100644 (file)
@@ -250,7 +250,7 @@ spl_secondary_hart_stack_gd_setup:
 spl_call_board_init_r:
        mv      a0, zero
        mv      a1, zero
-       jal     board_init_r
+       j       board_init_r
 #endif
 
 /*