diff mbox series

[U-Boot,v3,08/11] m68k: enabling long jumps on mcf54x5 SoCs

Message ID 20181013223439.31998-8-angelo@sysam.it
State Superseded
Delegated to: Jason Jin
Headers show
Series [U-Boot,v3,01/11] m68k: add basic set of devicetrees | expand

Commit Message

Angelo Dureghello Oct. 13, 2018, 10:34 p.m. UTC
Growing of binary size asks for long assembly jumps.

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
Changes for v2:
- new patch
Changes for v3:
- none
---
 arch/m68k/cpu/mcf547x_8x/start.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Simon Glass Oct. 19, 2018, 3:26 a.m. UTC | #1
On 13 October 2018 at 16:34, Angelo Dureghello <angelo@sysam.it> wrote:
> Growing of binary size asks for long assembly jumps.
>
> Signed-off-by: Angelo Dureghello <angelo@sysam.it>
> ---
> Changes for v2:
> - new patch
> Changes for v3:
> - none
> ---
>  arch/m68k/cpu/mcf547x_8x/start.S | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/arch/m68k/cpu/mcf547x_8x/start.S b/arch/m68k/cpu/mcf547x_8x/start.S
index 7cb5db7ff0..4dd57bf39c 100644
--- a/arch/m68k/cpu/mcf547x_8x/start.S
+++ b/arch/m68k/cpu/mcf547x_8x/start.S
@@ -131,7 +131,8 @@  _start:
 	 * then (and always) gd struct space will be reserved
 	 */
 	move.l	%sp, -(%sp)
-	bsr	board_init_f_alloc_reserve
+	move.l	#board_init_f_alloc_reserve, %a1
+	jsr	(%a1)
 
 	/* update stack and frame-pointers */
 	move.l  %d0, %sp
@@ -139,7 +140,8 @@  _start:
 
 	/* initialize reserved area */
 	move.l	%d0, -(%sp)
-	bsr	board_init_f_init_reserve
+	move.l	#board_init_f_init_reserve, %a1
+	jsr	(%a1)
 
 	/* run low-level CPU init code (from flash) */
 	jbsr	cpu_init_f