summaryrefslogtreecommitdiff
path: root/lzo/prepcore.c
Commit message (Collapse)AuthorAgeFilesLines
* prepcore: make error() generate newlineH. Peter Anvin2009-06-011-12/+13
| | | | | | | Make error() automatically generate newline, to make the code a bit cleaner looking. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* prepcore: style cleanupsH. Peter Anvin2009-06-011-52/+68
| | | | | | | Style cleanups in lzo/prepcore.c. Add an error() function and an error-checking zeroing memory allocator (xzalloc). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* prepcore: error out if the compressed image is too large to loadH. Peter Anvin2009-06-011-0/+8
| | | | | | | | Export, from each loader stage, the symbol MaxLMA which indicates to prepcore how big the image is allowed to be. Change prepcore to enforce this limit and to error out otherwise. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* prepcore: actually do a full binary comparison on the output endH. Peter Anvin2009-05-311-5/+9
| | | | | | | Do a full binary comparison between the decompressed output and what we started with. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on lzo/prepcore.cH. Peter Anvin2009-05-291-123/+109
| | | | | | | | | Automatically reformat lzo/prepcore.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* prepcore: fix ISOLINUX padding, cleanupsH. Peter Anvin2009-05-231-91/+22
| | | | | | | Fix the calculation of the ISOLINUX padding size. Add stylistic cleanups and remove code that we don't care about (e.g. LZO1Y). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: LZO compress the PM part of the coreH. Peter Anvin2009-05-201-0/+439
Use LZO to compress the PM part of the core. LZO is not the best compression algorithm, but it is very fast, and the decompressor is only 447 bytes long. The LZO code is part of the LZO 2.03 library. Signed-off-by: H. Peter Anvin <hpa@zytor.com>