From: Tang Yuantian Date: Wed, 23 Jul 2014 09:27:52 +0000 (+0800) Subject: powerpc/mpc85xx: Make boot flag effective X-Git-Tag: v2014.10-rc2~119^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3067547502873281b19e01c7bc25da63c9b42b1e;p=u-boot powerpc/mpc85xx: Make boot flag effective bootflag as a parameter is passed to board_init_f(). But it is not actually used in this function. Make it effective by assigned it to gd->flags. Signed-off-by: Tang Yuantian Reviewed-by: York Sun --- diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c index 02962054f6..6eaab88243 100644 --- a/arch/powerpc/lib/board.c +++ b/arch/powerpc/lib/board.c @@ -366,6 +366,8 @@ void board_init_f(ulong bootflag) memset((void *) gd, 0, sizeof(gd_t)); #endif + gd->flags = bootflag; + for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) if ((*init_fnc_ptr) () != 0) hang();