[U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available

Mike Frysinger vapier at gentoo.org
Thu Jul 19 06:31:47 CEST 2012


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: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/f157e47d/attachment.pgp>


More information about the U-Boot mailing list