2 * Elf Load/Boot Functions
7 #if (CONFIG_COMMANDS & CFG_CMD_ELF)
9 #define CMD_TBL_BOOTELF MK_CMD_TBL_ENTRY( \
10 "bootelf", 7, 2, 0, do_bootelf, \
11 "bootelf - Boot from an ELF image in memory\n", \
12 " [address] - load address of ELF image.\n" \
15 #define CMD_TBL_BOOTVX MK_CMD_TBL_ENTRY( \
16 "bootvx", 6, 2, 0, do_bootvx, \
17 "bootvx - Boot vxWorks from an ELF image\n", \
18 " [address] - load address of vxWorks ELF image.\n" \
21 extern int do_bootelf (cmd_tbl_t *, int, int, char *[]);
22 extern int do_bootvx (cmd_tbl_t *, int, int, char *[]);
24 /* Supporting routines */
25 extern int valid_elf_image (unsigned long);
26 extern unsigned long load_elf_image (unsigned long);
28 #else /* ! CFG_CMD_ELF */
30 #define CMD_TBL_BOOTELF
31 #define CMD_TBL_BOOTVX
33 #endif /* CFG_CMD_ELF */
34 #endif /* _CMD_ELF_H */