
1 Jul
2013
1 Jul
'13
8:51 p.m.
On Wed, 05 Jun 2013 08:14:30 +0200 Piotr Wilczek p.wilczek@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@samsung.com Signed-off-by: Kyungmin Park kyungmin.park@samsung.com CC: Anatolij Gustschin agust@denx.de CC: Wolfgang Denk wd@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