[U-Boot] [PATCH v3 05/12] common: lcd.c: fix data abort exception when try to access bmp header

Anatolij Gustschin agust at denx.de
Mon Jan 6 09:54:59 CET 2014


On Fri, 03 Jan 2014 17:43:06 +0100
Przemyslaw Marczak <p.marczak at samsung.com> wrote:

> Changes:
> - le16_to_cpu() to get_unaligned_le16()
> - le32_to_cpu() to get_unaligned_le32()
> when access fields in struct bmp header.
> 
> This changes avoids data abort exception caused by unaligned data access.
> 
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> 
> ---
> Changes v2:
> - new patch
> 
> Changes v3:
> - common/Makefile - remove CFLAG: -mno-unaligned-access
> - common/lcd.c - fix data abort exception when access bmp_header
> 
>  common/lcd.c |   27 +++++++++++++--------------
>  1 file changed, 13 insertions(+), 14 deletions(-)

Acked-by: Anatolij Gustschin <agust at denx.de>


More information about the U-Boot mailing list