From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 1 Jul 2013 20:51:31 +0200 Subject: [U-Boot] [PATCH V4] lcd: align bmp header when uncopmressing image In-Reply-To: <1370412870-5150-1-git-send-email-p.wilczek@samsung.com> References: <1370343625-16596-1-git-send-email-p.wilczek@samsung.com> <1370412870-5150-1-git-send-email-p.wilczek@samsung.com> Message-ID: <20130701205131.633a055f@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 05 Jun 2013 08:14:30 +0200 Piotr Wilczek 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 > Signed-off-by: Kyungmin Park > CC: Anatolij Gustschin > CC: Wolfgang Denk > --- > 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