From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Tue, 04 Jun 2013 21:41:02 -0600 Subject: [U-Boot] [PATCH] fdt: remove unaligned access in fdt_fixup_ethernet() In-Reply-To: <1369713679-3256-1-git-send-email-swarren@wwwdotorg.org> References: <1369713679-3256-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <51AEB34E.2090900@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.