From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Thu, 19 Jul 2012 00:31:47 -0400 Subject: [U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available In-Reply-To: <20120705095719.5d6ca845@aari01-12> References: <1338918451-10126-1-git-send-email-dev@lynxeye.de> <20120705095719.5d6ca845@aari01-12> Message-ID: <201207190031.49055.vapier@gentoo.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 Thursday 05 July 2012 03:57:19 Albert ARIBAUD wrote: > But to be honest, I haven't seen such badly a designed protocol or file > format; their designers tend to make sure that (assuming the start of a > protocol or file 'content' (frame, record, etc) is aligned, then all > fields in it are aligned as well. Can someone point me to an example of > a protocol or file format which does present such a misalignment risk ? simply search the kernel for get_unaligned then. there are plenty of examples in there. granted, many apply to stacks that don't show up in u-boot (yet?) such as bluetooth, wireless, and irda, but i'm pretty sure TCP/IPv4 has a few edge cases too. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: