[U-Boot] [PATCH] fdt: remove unaligned access in fdt_fixup_ethernet()

Stephen Warren swarren at wwwdotorg.org
Wed Jun 5 05:41:02 CEST 2013


On 05/27/2013 10:01 PM, Stephen Warren wrote:
> Some ARM compilers may emit code that makes unaligned accesses when
> faced with constructs such as:
> 
> char mac[16] = "ethaddr";
> 
> Replace this with a strcpy() call instead to avoid this. strcpy() is
> used here, rather than replacing all usage of the mac variable with the
> string itself, since the loop itself sprintf()s to the variable each
> iteration, so strcpy() is doing basically the same thing.

Jerry, does this patch look good? This fixes a problem that prevents
U-Boot from booting a Linux kernel for some people. Thanks.


More information about the U-Boot mailing list