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

Hesham Almatary hesham.almatary at cl.cam.ac.uk
Tue Sep 15 06:39:05 UTC 2020


Thanks, Sebastian, LGTM.

On Mon, 14 Sep 2020 at 14:01, Joel Sherrill <joel at rtems.org> wrote:
>
> 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
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list