History log of /arch/powerpc/boot/gunzip_util.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
51a505d73bfed863135861fdc0496a09766b69d5 22-Sep-2007 Milton Miller <miltonm@bga.com> [POWERPC] boot: Simplify gunzip_finish

Call gunzip_partial to calculate the remaining length and copy the
data to the user buffer. This makes it shorter and reduces
duplication.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c
e47654d016c68a02f654ac16951577804f7789c7 22-Sep-2007 Milton Miller <miltonm@bga.com> [POWERPC] boot: Record header bytes in gunzip_start

Record the number of header bytes skipped in the total bytes read field.

This is needed for the initramfs parsing code to find the end of the zip file.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c
3c5f6162549b9045a2925dff64c140c7f49ea344 11-Apr-2007 Milton Miller <miltonm@bga.com> [POWERPC] boot: More verbose gunzip error message

Change the error message in gunzip_exactly to be more verbose.

Besides the identifier being unrelated to the current function name,
the user had no indication if the corruption was near the beginning
or the end.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c
6a923216aac01d0f3eeea606377b81541f1a2773 21-Mar-2007 Milton Miller <miltonm@bga.com> [POWERPC] bootwrapper: Add a fatal error helper

Add a macro fatal that calls printf then exit. User must include stdio.h.

Typically replaces 3 lines with 1, although I added back some whitespace.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c
7850ad5c39a40ae14ab37e030357e2ae8252af2b 14-Mar-2007 David Gibson <david@gibson.dropbear.id.au> [POWERPC] Add documentation for the zImage's gunzip convenience functions

This patch adds documenting comments to the gunzip convenience
functions added in commit ad9d2716cfc1cda5a7e0d7bc0db45e3af8a4adbb.
It also removes a stray newline, and an unused global variable.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c
ad9d2716cfc1cda5a7e0d7bc0db45e3af8a4adbb 05-Mar-2007 David Gibson <david@gibson.dropbear.id.au> [POWERPC] zImage: Add more flexible gunzip convenience functions

At present, arch/powerpc/boot/main.c includes a gunzip() function
which is a convenient wrapper around zlib. However, it doesn't
conveniently allow decompressing part of an image to one location,
then the remainder to a different address.

This patch adds a new set of more flexible convenience wrappers around
zlib, moving them to their own file, gunzip_util.c, in the process.
These wrappers allow decompressing sections of the compressed image to
different locations. In addition, they transparently handle
uncompressed data, avoiding special case code to handle uncompressed
vmlinux images.

The patch also converts main.c to use the new wrappers, using the new
flexibility to avoid decompressing the vmlinux's ELF header twice as
we did previously. That in turn means we avoid extending our
allocations for the vmlinux to allow space for the extra copy of the
ELF header.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
/arch/powerpc/boot/gunzip_util.c