bootm: refactor do_reset and os boot function args
There is no need for each OS specific function to call do_reset() we
can just do it once in bootm. This means its feasible on an error for
the OS boot function to return.
Also, remove passing in cmd_tbl_t as its not needed by the OS boot
functions. flag isn't currently used but might be in the future so
we left it alone.
Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
Showing
- common/cmd_bootm.c 35 additions, 32 deletionscommon/cmd_bootm.c
- lib_arm/bootm.c 2 additions, 8 deletionslib_arm/bootm.c
- lib_avr32/bootm.c 2 additions, 8 deletionslib_avr32/bootm.c
- lib_blackfin/bootm.c 3 additions, 8 deletionslib_blackfin/bootm.c
- lib_i386/bootm.c 2 additions, 7 deletionslib_i386/bootm.c
- lib_m68k/bootm.c 2 additions, 8 deletionslib_m68k/bootm.c
- lib_microblaze/bootm.c 2 additions, 8 deletionslib_microblaze/bootm.c
- lib_mips/bootm.c 2 additions, 10 deletionslib_mips/bootm.c
- lib_nios/bootm.c 2 additions, 2 deletionslib_nios/bootm.c
- lib_nios2/bootm.c 2 additions, 7 deletionslib_nios2/bootm.c
- lib_ppc/bootm.c 4 additions, 7 deletionslib_ppc/bootm.c
- lib_sh/bootm.c 2 additions, 7 deletionslib_sh/bootm.c
- lib_sparc/bootm.c 2 additions, 5 deletionslib_sparc/bootm.c
Loading
Please register or sign in to comment