aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/boot/main.c b/arch/powerpc/boot/main.c
index 30390621203d..56b56a8d4b23 100644
--- a/arch/powerpc/boot/main.c
+++ b/arch/powerpc/boot/main.c
@@ -79,7 +79,10 @@ static struct addr_range prep_kernel(void)
79 vmlinuz_addr, vmlinuz_addr+vmlinuz_size); 79 vmlinuz_addr, vmlinuz_addr+vmlinuz_size);
80 /* discard up to the actual load data */ 80 /* discard up to the actual load data */
81 gunzip_discard(&gzstate, ei.elfoffset - sizeof(elfheader)); 81 gunzip_discard(&gzstate, ei.elfoffset - sizeof(elfheader));
82 len = gunzip_finish(&gzstate, addr, ei.memsize); 82 len = gunzip_finish(&gzstate, addr, ei.loadsize);
83 if (len != ei.loadsize)
84 fatal("ran out of data! only got 0x%x of 0x%lx bytes.\n\r",
85 len, ei.loadsize);
83 printf("done 0x%x bytes\n\r", len); 86 printf("done 0x%x bytes\n\r", len);
84 87
85 flush_cache(addr, ei.loadsize); 88 flush_cache(addr, ei.loadsize);