linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / ppc / boot / openfirmware / chrpmain.c
index 6fb4f73..245dbd9 100644 (file)
@@ -39,7 +39,7 @@ char *avail_high;
 
 #define SCRATCH_SIZE   (128 << 10)
 
-static char scratch[SCRATCH_SIZE];     /* 1MB of scratch space for gunzip */
+static char scratch[SCRATCH_SIZE];     /* 128k of scratch space for gunzip */
 
 typedef void (*kernel_start_t)(int, int, void *, unsigned int, unsigned int);
 
@@ -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);