]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/cmd_elf.h
* Patches by Robert Schwebel, 26 Jun 2003:
[people/ms/u-boot.git] / include / cmd_elf.h
1 /*
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
21 extern int do_bootelf (cmd_tbl_t *, int, int, char *[]);
22 extern int do_bootvx (cmd_tbl_t *, int, int, char *[]);
23
24 /* Supporting routines */
25 extern int valid_elf_image (unsigned long);
26 extern 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 */