[U-Boot] [PATCH] lcd: remove unaligned access in lcd_dt_simplefb_configure_node()
Anatolij Gustschin
agust at denx.de
Mon Jul 1 20:13:46 CEST 2013
On Thu, 13 Jun 2013 17:13:11 -0600
Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Some ARM compilers may emit code that makes unaligned accesses when
> faced with constructs such as:
>
> const char format[] = "r5g6b5";
>
> Make this data static since it doesn't chagne; the compiler will simply
> place it into the .rodata section directly, and avoid any unaligned run-
> time initialization.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
> common/lcd.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Applied to u-boot-video/master. Thanks!
Anatolij
More information about the U-Boot
mailing list