Home
last modified time | relevance | path

Searched hist:"064 d55f8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/common/
H A Dfdt_support.c064d55f8 Mon May 27 13:01:19 CDT 2013 Stephen Warren <swarren@wwwdotorg.org> fdt: remove unaligned access in fdt_fixup_ethernet()

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@wwwdotorg.org>