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

Tom Rini trini at ti.com
Fri Jun 7 20:19:09 CEST 2013


On Mon, May 27, 2013 at 06:01:19PM -0000, 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.
> 
> Reported-by: Florian Meier
> Signed-off-by: Stephen Warren <swarren at wwwdotorg.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130607/22b9944e/attachment.pgp>


More information about the U-Boot mailing list