[U-Boot] [U-Boot, V3] cfb_console: align fields in gzipped .bmp files
Tom Rini
trini at ti.com
Mon Mar 10 22:28:13 CET 2014
On Sat, Mar 08, 2014 at 07:55:52AM -0700, Eric Nelson wrote:
> .bmp files contain 32-bit integers aligned at offsets of +2, +6,
> et cetera within the bmp_header structure (see include/bmp_layout.h).
>
> Support for gzip-compressed .bmp files is present in the cfb_console
> display subsystem by uncompressing them prior to use.
>
> This patch forces the in-memory header to be aligned properly
> for these compressed images by extracting them to a 2-byte
> offset in the memory returned by malloc. Since malloc will always
> return a 4-byte aligned value, this forces the .bmp header
> fields to be naturally aligned on 4-byte addresses.
>
> Refer to these files for more details:
> doc/README.displaying-bmps
> doc/README.arm-unaligned-accesses
>
> Signed-off-by: Eric Nelson <eric.nelson at boundarydevices.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140310/b041d9e0/attachment.pgp>
More information about the U-Boot
mailing list