[U-Boot] [PATCH V4] lcd: align bmp header when uncopmressing image

Anatolij Gustschin agust at denx.de
Mon Jul 1 20:51:31 CEST 2013


On Wed, 05 Jun 2013 08:14:30 +0200
Piotr Wilczek <p.wilczek at samsung.com> wrote:

> When compressed image is loaded, it must be decompressed
> to an aligned address + 2 to avoid unaligned access exception
> on some ARM platforms.
> 
> Signed-off-by: Piotr Wilczek <p.wilczek at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> CC: Anatolij Gustschin <agust at denx.de>
> CC: Wolfgang Denk <wd at denx.de>
> ---
> Changes for V4:
> - dropped the if condition
> 
> Changes for V3:
> - add comment on why extra space is allocated for uncompressed bmp header
> - change the + 2 aligment method as Wolfgang Denk suggested
> 
> Changes for V2:
> - add additional space for uncompressed bmp header due to alignment requirements
> - fix to 32-bit-aligned-address + 2 alignent
> 
>  common/cmd_bmp.c |   42 ++++++++++++++++++++++++++++--------------
>  include/lcd.h    |    3 ++-
>  2 files changed, 30 insertions(+), 15 deletions(-)

Applied to u-boot-video/master (slightly corrected the comment
for gunzip_bmp()). Thanks!

Anatolij


More information about the U-Boot mailing list