]> git.sur5r.net Git - u-boot/commit
powerpc/mpc83xx: Zero boot_flags arg for calling board_init_f()
authorValentin Longchamp <valentin.longchamp@keymile.com>
Fri, 3 Oct 2014 09:45:23 +0000 (11:45 +0200)
committerYork Sun <yorksun@freescale.com>
Fri, 14 Nov 2014 19:12:15 +0000 (11:12 -0800)
commite83a7e9453295753e84ab51221d167e87cac67aa
tree31ad93656936db15f20fa4ab5b30cf4d8d79bd8b
parent7ac1a24a85b9e961f8f26a9c2a23a438a849f183
powerpc/mpc83xx: Zero boot_flags arg for calling board_init_f()

The argument boot_flags of board_init_f() is not used at all in the
powerpc specific board.c init sequence. Now with the generic init
sequence, this boot_flags arg is used by board_init_f().

This patch sets the r3 register that is used to pass the boot_flags
argument from the start.S board_init_f() call to 0 prior to the function
call to avoid unknown content to end up in gd->flags.

Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc83xx/start.S