Commit 08337cd64832ed7f8147da75013510b92bbcd188
Committed by
Tom Rini
1 parent
f2a53c7665
Exists in
smarc_8mq_lf_v2020.04
and in
13 other branches
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>
Showing 2 changed files with 8 additions and 2 deletions Side-by-side Diff
arch/riscv/lib/bootm.c
... | ... | @@ -86,7 +86,7 @@ |
86 | 86 | |
87 | 87 | bootstage_mark(BOOTSTAGE_ID_RUN_OS); |
88 | 88 | |
89 | - debug("## Transferring control to Linux (at address %08lx) ...\n", | |
89 | + debug("## Transferring control to kernel (at address %08lx) ...\n", | |
90 | 90 | (ulong)kernel); |
91 | 91 | |
92 | 92 | announce_and_cleanup(fake); |
... | ... | @@ -117,5 +117,11 @@ |
117 | 117 | boot_prep_linux(images); |
118 | 118 | boot_jump_linux(images, flag); |
119 | 119 | return 0; |
120 | +} | |
121 | + | |
122 | +int do_bootm_vxworks(int flag, int argc, char * const argv[], | |
123 | + bootm_headers_t *images) | |
124 | +{ | |
125 | + return do_bootm_linux(flag, argc, argv, images); | |
120 | 126 | } |
common/bootm_os.c
... | ... | @@ -482,7 +482,7 @@ |
482 | 482 | [IH_OS_PLAN9] = do_bootm_plan9, |
483 | 483 | #endif |
484 | 484 | #if defined(CONFIG_BOOTM_VXWORKS) && \ |
485 | - (defined(CONFIG_PPC) || defined(CONFIG_ARM)) | |
485 | + (defined(CONFIG_PPC) || defined(CONFIG_ARM) || defined(CONFIG_RISCV)) | |
486 | 486 | [IH_OS_VXWORKS] = do_bootm_vxworks, |
487 | 487 | #endif |
488 | 488 | #if defined(CONFIG_CMD_ELF) |