bootm: Adjust arguments of boot_os_fn
Adjust boot_os_fn to use struct bootm_info instead of the separate argc, argv and image parameters. Update the handlers accordingly. Few of the functions make use of the arguments, so this improves code size slightly. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
* Yasushi SHOJI <yashi@atmark-techno.com>
|
||||
*/
|
||||
|
||||
#include <bootm.h>
|
||||
#include <bootstage.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
@@ -81,9 +82,10 @@ static void boot_prep_linux(struct bootm_headers *images)
|
||||
}
|
||||
}
|
||||
|
||||
int do_bootm_linux(int flag, int argc, char *const argv[],
|
||||
struct bootm_headers *images)
|
||||
int do_bootm_linux(int flag, struct bootm_info *bmi)
|
||||
{
|
||||
struct bootm_headers *images = bmi->images;
|
||||
|
||||
images->cmdline_start = (ulong)env_get("bootargs");
|
||||
|
||||
/* cmdline init is the part of 'prep' and nothing to do for 'bdt' */
|
||||
|
||||
Reference in New Issue
Block a user