]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/ppc/boot/openfirmware/chrpmain.c
[PATCH] ppc: Fix ARCH=ppc build with xmon
[linux-3.10.git] / arch / ppc / boot / openfirmware / chrpmain.c
index effe4a0624b0840d524a9c69e0a619c38f4c8edf..245dbd9fc1200f7a452153371a8be98023258b44 100644 (file)
@@ -78,7 +78,7 @@ boot(int a1, int a2, void *prom)
        begin_avail = avail_high = avail_ram;
        end_avail = scratch + sizeof(scratch);
        printf("gunzipping (0x%p <- 0x%p:0x%p)...", dst, im, im+len);
-       gunzip(dst, 0x400000, im, &len);
+       gunzip(dst, PROG_SIZE - PROG_START, im, &len);
        printf("done %u bytes\n\r", len);
        printf("%u bytes of heap consumed, max in use %u\n\r",
               avail_high - begin_avail, heap_max);