patch-2.3.16 linux/arch/ppc/coffboot/main.c

Next file: linux/arch/ppc/common_defconfig
Previous file: linux/arch/ppc/chrpboot/main.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/arch/ppc/coffboot/main.c linux/arch/ppc/coffboot/main.c
@@ -100,7 +100,7 @@
 
     flush_cache(dst, len);
 
-    sa = *(unsigned *)dst + PROG_START;
+    sa = (unsigned long)dst;
     printf("start address = 0x%x\n", sa);
 
 #if 0
@@ -165,7 +165,7 @@
 	printf("gunzip: ran out of data in header\n");
 	exit();
     }
-
+printf("done 1\n");
     s.zalloc = zalloc;
     s.zfree = zfree;
     r = inflateInit2(&s, -MAX_WBITS);
@@ -177,11 +177,14 @@
     s.avail_in = *lenp - i;
     s.next_out = dst;
     s.avail_out = dstlen;
+printf("doing inflate\n");
     r = inflate(&s, Z_FINISH);
+printf("done inflate\n");
     if (r != Z_OK && r != Z_STREAM_END) {
 	printf("inflate returned %d\n", r);
 	exit();
     }
     *lenp = s.next_out - (unsigned char *) dst;
+printf("doing end\n");
     inflateEnd(&s);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)