summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPurna Chandra Mandal <purna.mandal@microchip.com>2016-01-21 20:02:51 +0530
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-02-01 22:13:24 +0100
commita62790997f9a2e50a168c73e752a471590e8cf4f (patch)
tree3450b902ff1b94d18373d9217f6482dc439c1cbf
parent8cdae1dacde7dbe74d53a8ac1a05761a53c4f191 (diff)
downloadu-boot-imx-a62790997f9a2e50a168c73e752a471590e8cf4f.zip
u-boot-imx-a62790997f9a2e50a168c73e752a471590e8cf4f.tar.gz
u-boot-imx-a62790997f9a2e50a168c73e752a471590e8cf4f.tar.bz2
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>
-rw-r--r--arch/mips/cpu/start.S2
1 files changed, 1 insertions, 1 deletions
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