diff options
author | Valentin Longchamp <valentin.longchamp@keymile.com> | 2014-10-03 11:45:23 +0200 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-11-14 11:12:15 -0800 |
commit | e83a7e9453295753e84ab51221d167e87cac67aa (patch) | |
tree | 31ad93656936db15f20fa4ab5b30cf4d8d79bd8b /arch/powerpc | |
parent | 7ac1a24a85b9e961f8f26a9c2a23a438a849f183 (diff) | |
download | u-boot-imx-e83a7e9453295753e84ab51221d167e87cac67aa.zip u-boot-imx-e83a7e9453295753e84ab51221d167e87cac67aa.tar.gz u-boot-imx-e83a7e9453295753e84ab51221d167e87cac67aa.tar.bz2 |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/mpc83xx/start.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/start.S b/arch/powerpc/cpu/mpc83xx/start.S index af75c63..9bd86d8 100644 --- a/arch/powerpc/cpu/mpc83xx/start.S +++ b/arch/powerpc/cpu/mpc83xx/start.S @@ -283,6 +283,7 @@ in_flash: bl cpu_init_f /* run 1st part of board init code (in Flash)*/ + li r3, 0 /* clear boot_flag for calling board_init_f */ bl board_init_f /* NOTREACHED - board_init_f() does not return */ |