[PATCH] bsps/riscv: Use far jump to boot_card()

Joel Sherrill joel at rtems.org
Mon Sep 14 13:00:59 UTC 2020


Looks good. Reasonable and safer.

On Mon, Sep 14, 2020 at 12:10 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> Use a far jump to avoid errors like this:
>
> relocation truncated to fit: R_RISCV_JAL against symbol `boot_card'
> ---
>  bsps/riscv/shared/start/start.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bsps/riscv/shared/start/start.S
> b/bsps/riscv/shared/start/start.S
> index a8ff1b079f..04a62a26ce 100644
> --- a/bsps/riscv/shared/start/start.S
> +++ b/bsps/riscv/shared/start/start.S
> @@ -93,7 +93,7 @@ SYM(_start):
>  #endif
>
>         li      a0, 0
> -       j       boot_card
> +       tail    boot_card
>
>  #ifdef RTEMS_SMP
>
> --
> 2.26.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200914/7b1705f4/attachment-0001.html>


More information about the devel mailing list