summaryrefslogtreecommitdiff
path: root/lib_i386/i386_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_i386/i386_linux.c')
-rw-r--r--lib_i386/i386_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_i386/i386_linux.c b/lib_i386/i386_linux.c
index c37a0d8ee6..5a596ff2b8 100644
--- a/lib_i386/i386_linux.c
+++ b/lib_i386/i386_linux.c
@@ -47,7 +47,7 @@ image_header_t *fake_header(image_header_t *hdr, void *ptr, int size)
void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
ulong addr, ulong *len_ptr, int verify)
{
- ulong base_ptr;
+ void *base_ptr;
ulong len = 0, checksum;
ulong initrd_start, initrd_end;
@@ -150,7 +150,7 @@ void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
initrd_end = 0;
}
- base_ptr = load_zimage(addr + sizeof(image_header_t), ntohl(hdr->ih_size),
+ base_ptr = load_zimage((void*)addr + sizeof(image_header_t), ntohl(hdr->ih_size),
initrd_start, initrd_end-initrd_start, 0);
if (NULL == base_ptr) {