diff mbox

[U-Boot,v2] MIPS: initialize board_init_f() argument to zero.

Message ID 1453386771-8998-1-git-send-email-purna.mandal@microchip.com
State Accepted
Commit a62790997f9a2e50a168c73e752a471590e8cf4f
Delegated to: Daniel Schwierzeck
Headers show

Commit Message

Purna Chandra Mandal Jan. 21, 2016, 2:32 p.m. UTC
Argument boot_flags of board_init_f() should be set to 0 as
$a0 may be utilized in lowlevel_init() or mips_cache_reset()
or previous stage boot-loader.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>

---

Changes in v2:
- add comment in same line as of the asm instruction
- add commit message

 arch/mips/cpu/start.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Schwierzeck Jan. 21, 2016, 4:16 p.m. UTC | #1
Am 21.01.2016 um 15:32 schrieb Purna Chandra Mandal:
> Argument boot_flags of board_init_f() should be set to 0 as
> $a0 may be utilized in lowlevel_init() or mips_cache_reset()
> or previous stage boot-loader.
> 
> Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
> 
> ---
> 
> Changes in v2:
> - add comment in same line as of the asm instruction
> - add commit message
> 
>  arch/mips/cpu/start.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

applied to u-boot-mips/next, thanks!
diff mbox

Patch

diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S
index e95cdca..2aa2dcb 100644
--- a/arch/mips/cpu/start.S
+++ b/arch/mips/cpu/start.S
@@ -185,7 +185,7 @@  reset:
 	PTR_ADDU t0, k0, GD_MALLOC_BASE	# gd->malloc_base offset
 	sw	sp, 0(t0)
 #endif
-
+	move	a0, zero		# a0 <-- boot_flags = 0
 	PTR_LA	t9, board_init_f
 	jr	t9
 	 move	ra, zero