diff mbox

[U-Boot] powerpc, mpc8260: init bootflag before calling board_init_f()

Message ID 1494573328-22961-1-git-send-email-hs@denx.de
State Deferred
Delegated to: Mario Six
Headers show

Commit Message

Heiko Schocher May 12, 2017, 7:15 a.m. UTC
in start.S we call board_init_f...

board_init_f has a function parameter bootflag,
which is not initialized when we call it, so we have
random behaviour... set bootflag to value 0
before calling board_init_f.

Signed-off-by: Heiko Schocher <hs@denx.de>
---

 arch/powerpc/cpu/mpc8260/start.S | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/arch/powerpc/cpu/mpc8260/start.S b/arch/powerpc/cpu/mpc8260/start.S
index d255bde..bb23be6 100644
--- a/arch/powerpc/cpu/mpc8260/start.S
+++ b/arch/powerpc/cpu/mpc8260/start.S
@@ -194,6 +194,7 @@  in_flash:
 	bl	init_debug	/* set up debugging stuff		*/
 #endif
 
+	li	r3, 0		/* parameter 1:	 bootflag		*/
 	bl	board_init_f	/* run 1st part of board init code (in Flash)*/
 
 	/* NOTREACHED - board_init_f() does not return */