From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Date: Wed, 19 Mar 2008 19:25:49 +0000 Subject: Re: [kvm-ppc-devel] [kvm-devel] [PATCH 3 of 7] Create new Message-Id: <47E168BD.3020506@codemonkey.ws> List-Id: References: <05d6146c77066b2bc0dd.1205953276@thinkpad.austin.ibm.com> In-Reply-To: <05d6146c77066b2bc0dd.1205953276@thinkpad.austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jerone Young Cc: kvm-devel@lists.sourceforge.net, kvm-ppc-devel@lists.sourceforge.net > > - cpu_physical_memory_write_rom(hdr->ih_load, data, hdr->ih_size); > - > - return hdr->ih_size; > + tmp_loaded_image_size = hdr->ih_size; > + > + if (hdr->ih_comp = IH_COMP_GZIP) { > + uncompressed_data = qemu_malloc(MAX_KERNEL_SIZE); > + ret = gunzip(uncompressed_data, MAX_KERNEL_SIZE, > + (unsigned char *) data, > + &tmp_loaded_image_size); > + > + if (ret < 0) { > + fprintf(stderr, "Unable to decompress gziped image!\n"); > + goto fail; > + } > + > + qemu_free(data); > + cpu_physical_memory_write_rom(hdr->ih_load, uncompressed_data, > + tmp_loaded_image_size); > + } > + else { > You've still got braces issues. Regards, Anthony Liguori ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-ppc-devel mailing list kvm-ppc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel