summaryrefslogtreecommitdiff
path: root/lib_sh/bootm.c
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-09-18 19:34:36 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2008-09-19 11:05:22 +0900
commitb5d10a13525c07ec6374adf840d7c87553b5f189 (patch)
tree14029185164928df1b8a625d5af404e62c548b37 /lib_sh/bootm.c
parent4a065abf926f128beb36d93449defa0d690e7fef (diff)
downloadu-boot-imx-b5d10a13525c07ec6374adf840d7c87553b5f189.zip
u-boot-imx-b5d10a13525c07ec6374adf840d7c87553b5f189.tar.gz
u-boot-imx-b5d10a13525c07ec6374adf840d7c87553b5f189.tar.bz2
sh: Fix compile warning
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Diffstat (limited to 'lib_sh/bootm.c')
-rw-r--r--lib_sh/bootm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib_sh/bootm.c b/lib_sh/bootm.c
index d5056ae..e3d4985 100644
--- a/lib_sh/bootm.c
+++ b/lib_sh/bootm.c
@@ -48,11 +48,12 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
/* Linux kernel load address */
void (*kernel) (void) = (void (*)(void))images->ep;
/* empty_zero_page */
- unsigned char *param = (unsigned char *)image_get_ep(images);
+ unsigned char *param
+ = (unsigned char *)image_get_load(images->legacy_hdr_os);
/* Linux kernel command line */
- unsigned char *cmdline = param + 0x100;
+ char *cmdline = (char *)param + 0x100;
/* PAGE_SIZE */
- unsigned long size = images->ep - image_get_ep(images);
+ unsigned long size = images->ep - (unsigned long)param;
char *bootargs = getenv("bootargs");
/* Setup parameters */