Commit a62790997f9a2e50a168c73e752a471590e8cf4f

Authored by Purna Chandra Mandal
Committed by Daniel Schwierzeck
1 parent 8cdae1dacd

MIPS: initialize board_init_f() argument to zero.

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>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/mips/cpu/start.S
... ... @@ -185,7 +185,7 @@
185 185 PTR_ADDU t0, k0, GD_MALLOC_BASE # gd->malloc_base offset
186 186 sw sp, 0(t0)
187 187 #endif
188   -
  188 + move a0, zero # a0 <-- boot_flags = 0
189 189 PTR_LA t9, board_init_f
190 190 jr t9
191 191 move ra, zero