Move decompression further down the code flow, so that - where
authorPatrick Georgi <patrick.georgi@coresystems.de>
Sat, 25 Apr 2009 07:32:24 +0000 (07:32 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Sat, 25 Apr 2009 07:32:24 +0000 (07:32 +0000)
commit369bc7882a6fa26bbcbd4d050a26fbc496cfdc47
tree0ed1014c5988bdc7c2fae375a211354af6a8c3f0
parent7994164a0ee8c58c47ed2dbe06807cb91ac62778
Move decompression further down the code flow, so that - where
possible - code is decompressed directly to the right place
(instead of copying around, as before).

The downside of this approach is that it's not possible (without API
changes to the decompressors) to put partial segments into bounce
buffers. So if a segment collides with coreboot _and_ is compressed,
it's bounced entirely.
But, as this only brings back the copy we already had before, the new
worst case is better than the average before.

It also fixes handling of compressed segments.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4207 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
src/boot/selfboot.c