summaryrefslogtreecommitdiff
path: root/lib_nios2
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-01-08 18:12:17 +0100
committerWolfgang Denk <wd@denx.de>2008-02-07 01:12:57 +0100
commitf13e7b2e993c61fed1f607962501e051940d6e80 (patch)
tree3894629f4d16c470f059ff4aa0d36e949103b79d /lib_nios2
parent1ee1180b6e93e56d0282ac8d943e448e9d0eab20 (diff)
downloadu-boot-imx-f13e7b2e993c61fed1f607962501e051940d6e80.zip
u-boot-imx-f13e7b2e993c61fed1f607962501e051940d6e80.tar.gz
u-boot-imx-f13e7b2e993c61fed1f607962501e051940d6e80.tar.bz2
[new uImage] Cleanup image header pointer use in bootm code
- use single image header pointer instead of a set of auxilliary variables. - add multi component image helper routines: get component size/data address Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_nios2')
-rw-r--r--lib_nios2/nios_linux.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib_nios2/nios_linux.c b/lib_nios2/nios_linux.c
index dea1ec1..cb84324 100644
--- a/lib_nios2/nios_linux.c
+++ b/lib_nios2/nios_linux.c
@@ -25,12 +25,9 @@
#include <command.h>
#include <asm/byteorder.h>
-extern image_header_t header; /* common/cmd_bootm.c */
-
void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
- ulong addr, ulong *len_ptr, int verify)
+ image_header_t *hdr, int verify)
{
- image_header_t *hdr = &header;
void (*kernel)(void) = (void (*)(void))image_get_ep (hdr);
/* For now we assume the Microtronix linux ... which only