mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 16:48:18 +00:00
riscv: bootm: Support booting VxWorks
Register the 'bootm' function for booting VxWorks kernel for RISC-V architecture. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
f2a53c7665
commit
08337cd648
2 changed files with 8 additions and 2 deletions
|
@ -86,7 +86,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
|
||||||
|
|
||||||
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
|
||||||
|
|
||||||
debug("## Transferring control to Linux (at address %08lx) ...\n",
|
debug("## Transferring control to kernel (at address %08lx) ...\n",
|
||||||
(ulong)kernel);
|
(ulong)kernel);
|
||||||
|
|
||||||
announce_and_cleanup(fake);
|
announce_and_cleanup(fake);
|
||||||
|
@ -118,3 +118,9 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
|
||||||
boot_jump_linux(images, flag);
|
boot_jump_linux(images, flag);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int do_bootm_vxworks(int flag, int argc, char * const argv[],
|
||||||
|
bootm_headers_t *images)
|
||||||
|
{
|
||||||
|
return do_bootm_linux(flag, argc, argv, images);
|
||||||
|
}
|
||||||
|
|
|
@ -482,7 +482,7 @@ static boot_os_fn *boot_os[] = {
|
||||||
[IH_OS_PLAN9] = do_bootm_plan9,
|
[IH_OS_PLAN9] = do_bootm_plan9,
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_BOOTM_VXWORKS) && \
|
#if defined(CONFIG_BOOTM_VXWORKS) && \
|
||||||
(defined(CONFIG_PPC) || defined(CONFIG_ARM))
|
(defined(CONFIG_PPC) || defined(CONFIG_ARM) || defined(CONFIG_RISCV))
|
||||||
[IH_OS_VXWORKS] = do_bootm_vxworks,
|
[IH_OS_VXWORKS] = do_bootm_vxworks,
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_CMD_ELF)
|
#if defined(CONFIG_CMD_ELF)
|
||||||
|
|
Loading…
Add table
Reference in a new issue