diff options
author | wdenk <wdenk> | 2002-08-27 10:27:51 (GMT) |
---|---|---|
committer | wdenk <wdenk> | 2002-08-27 10:27:51 (GMT) |
commit | 78f6622a1f135b8f3eabdba71cf26e8371f7eeef (patch) | |
tree | c2afac402ae70c11235e0e8269d9ef1e01f7b2e2 /include/cmd_elf.h | |
parent | 4a9cbbe832e1c377d04cfb53e9679844595bc3cf (diff) | |
download | u-boot-fsl-qoriq-78f6622a1f135b8f3eabdba71cf26e8371f7eeef.tar.xz |
Initial revision
Diffstat (limited to 'include/cmd_elf.h')
-rw-r--r-- | include/cmd_elf.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/cmd_elf.h b/include/cmd_elf.h new file mode 100644 index 0000000..64c52bc --- /dev/null +++ b/include/cmd_elf.h @@ -0,0 +1,34 @@ +/* + * Elf Load/Boot Functions + */ +#ifndef _CMD_ELF_H +#define _CMD_ELF_H + +#if (CONFIG_COMMANDS & CFG_CMD_ELF) + +#define CMD_TBL_BOOTELF MK_CMD_TBL_ENTRY( \ + "bootelf", 7, 2, 0, do_bootelf, \ + "bootelf - Boot from an ELF image in memory\n", \ + " [address] - load address of ELF image.\n" \ + ), + +#define CMD_TBL_BOOTVX MK_CMD_TBL_ENTRY( \ + "bootvx", 6, 2, 0, do_bootvx, \ + "bootvx - Boot vxWorks from an ELF image\n", \ + " [address] - load address of vxWorks ELF image.\n" \ + ), + +extern int do_bootelf (cmd_tbl_t *, int, int, char *[]); +extern int do_bootvx (cmd_tbl_t *, int, int, char *[]); + +/* Supporting routines */ +extern int valid_elf_image (unsigned long); +extern unsigned long load_elf_image (unsigned long); + +#else /* ! CFG_CMD_ELF */ + +#define CMD_TBL_BOOTELF +#define CMD_TBL_BOOTVX + +#endif /* CFG_CMD_ELF */ +#endif /* _CMD_ELF_H */ |