From: Tom Rini Date: Thu, 6 Jun 2013 10:47:57 -0400 Subject: [U-Boot] input: fix unaligned access in key_matrix_decode_fdt() In-Reply-To: <20130605123420.GN10720@bill-the-cat> References: <1369248498-1799-1-git-send-email-swarren@wwwdotorg.org> <20130605123420.GN10720@bill-the-cat> Message-ID: <20130606144757.GA10720@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jun 05, 2013 at 08:34:20AM -0400, Tom Rini wrote: > On Wed, May 22, 2013 at 08:48:18AM -0000, Stephen Warren wrote: > > > From: Stephen Warren > > > > Initialized character arrays on the stack can cause gcc to emit code that > > performs unaligned accessess. Make the data static to avoid this. > > > > Note that the unaligned accesses are made when copying data to prefix[] on > > the stack from .rodata. By making the data static, the copy is completely > > avoided. All explicitly written code treats the data as u8[], so will never > > cause any unaligned accesses. > > > > Signed-off-by: Stephen Warren > > Acked-by: Simon Glass > > Applied to u-boot/master, thanks! Bah! I see I applied v1 and not v2, I shall post and apply the delta between them momentarily. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: