blob: 64c52bc63a67074d5bb5b37cc490f84d584c027b [file] [log] [blame]
wdenk78f66222002-08-27 10:27:51 +00001/*
2 * Elf Load/Boot Functions
3 */
4#ifndef _CMD_ELF_H
5#define _CMD_ELF_H
6
7#if (CONFIG_COMMANDS & CFG_CMD_ELF)
8
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" \
13 ),
14
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" \
19 ),
20
21extern int do_bootelf (cmd_tbl_t *, int, int, char *[]);
22extern int do_bootvx (cmd_tbl_t *, int, int, char *[]);
23
24/* Supporting routines */
25extern int valid_elf_image (unsigned long);
26extern unsigned long load_elf_image (unsigned long);
27
28#else /* ! CFG_CMD_ELF */
29
30#define CMD_TBL_BOOTELF
31#define CMD_TBL_BOOTVX
32
33#endif /* CFG_CMD_ELF */
34#endif /* _CMD_ELF_H */