{
/*
* In case of legacy uImage's, relocation of FDT is already done
- * by do_bootm_states() and should not repeated in 'bootm prep'.
+ * by bootm_run_states() and should not repeated in 'bootm prep'.
*/
if (images->state & BOOTM_STATE_FDT) {
debug("## FDT already relocated\n");
return ret;
}
-int do_bootm_states(struct bootm_info *bmi, int states)
+int bootm_run_states(struct bootm_info *bmi, int states)
{
struct bootm_headers *images = bmi->images;
boot_os_fn *boot_fn;
bootm_init(&bmi);
bmi.addr_img = addr_str;
bmi.cmd_name = "bootm";
- ret = do_bootm_states(&bmi, states);
+ ret = bootm_run_states(&bmi, states);
return ret;
}
unsigned long decomp_len;
int ctype;
- ret = do_bootm_states(bmi, BOOTM_STATE_START);
+ ret = bootm_run_states(bmi, BOOTM_STATE_START);
/* Setup Linux kernel Image entry point */
if (!bmi->addr_img) {
if (IS_ENABLED(CONFIG_SYS_BOOT_RAMDISK_HIGH))
states |= BOOTM_STATE_RAMDISK;
- ret = do_bootm_states(&bmi, states);
+ ret = bootm_run_states(&bmi, states);
return ret;
}
bmi.argc = argc;
bmi.argv = argv;
- ret = do_bootm_states(&bmi, state);
+ ret = bootm_run_states(&bmi, state);
#if defined(CONFIG_CMD_BOOTM_PRE_LOAD)
if (!ret && (state & BOOTM_STATE_PRE_LOAD))
bmi.argc = argc;
bmi.argv = argv;
- ret = do_bootm_states(&bmi, states);
+ ret = bootm_run_states(&bmi, states);
return ret ? CMD_RET_FAILURE : 0;
}
bmi.conf_fdt = argv[2];
/* do not set up argc and argv[] since nothing uses them */
- ret = do_bootm_states(&bmi, BOOTM_STATE_START);
+ ret = bootm_run_states(&bmi, BOOTM_STATE_START);
/* Setup Linux kernel zImage entry point */
if (!argc) {
if (IS_ENABLED(CONFIG_SYS_BOOT_RAMDISK_HIGH))
states |= BOOTM_STATE_RAMDISK;
- ret = do_bootm_states(&bmi, states);
+ ret = bootm_run_states(&bmi, states);
return ret;
}
int bootm_measure(struct bootm_headers *images);
/**
- * do_bootm_states() - Execute selected states of the bootm command.
+ * bootm_run_states() - Execute selected states of the bootm command.
*
* Note that if states contains more than one flag it MUST contain
* BOOTM_STATE_START, since this handles the addr_fit, conf_ramdisk and conf_fit
* then the intent is to boot an OS, so this function will not return
* unless the image type is standalone.
*/
-int do_bootm_states(struct bootm_info *bmi, int states);
+int bootm_run_states(struct bootm_info *bmi, int states);
void arch_preboot_os(void);