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

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Sep 14 05:10:35 UTC 2020


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



More information about the devel mailing list