aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules/sdi.c
Commit message (Collapse)AuthorAgeFilesLines
* Run Nindent on com32/modules/sdi.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | Automatically reformat com32/modules/sdi.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>
* shuffler: correctly handle one-to-many relationshipssyslinux-3.80-pre7H. Peter Anvin2009-05-021-8/+3
| | | | | | | | | | | | | | | | | | One-to-many relationships, in which one chunk of a file is used in more than one place, tends to naturally show up in decoding certain fileformats, including (but not limited to) Microsoft SDI. Make the shuffler library handle those cases correctly, and remove a special-purpose hack in sdi.c. This is based on the observation that all one-to-many relationships can be treated as a one-to-one shuffle followed by destination-to-destination copies; i.e. one copy is (arbitrarily) assigned the "master copy" status, and all aliases are then copied from the master copy when the master copy is already in its final place. All other copies can then be simply ignored for the duration of the shuffle, just as zero-memory is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* sdi.c32: Change SDIReserved -> MDBTypeH. Peter Anvin2008-09-081-1/+1
| | | | Per Sergii Kolisnyk, change SDIReserved to MDBType.
* sdi.c32: verify the header checksumRemi Lefevre2008-09-081-0/+33
| | | | | | | Verify the checksum in the SDI header. SDIheader variable names and checksum algo are from http://skolk.livejournal.com/
* sdi.c32: credit where credit is dueH. Peter Anvin2008-09-021-1/+2
| | | | | | | This doesn't use Remi's code, but definitely used some concepts from his patch. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* sdi.c32: support gzipped SDI imagesH. Peter Anvin2008-09-021-1/+1
| | | | | | | Support gzipped SDI images, simply by replacing loadfile() with zloadfile(). Suggested by Remi Lefevre. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* sdi.c32: be a tad more verbose.H. Peter Anvin2008-04-081-1/+5
| | | | Print minimal message while loading.
* COM32 module to load a Microsoft System Deployment ImageH. Peter Anvin2008-03-311-0/+161
COM32 module to load a Microsoft System Deployment Image (SDI) file.