[U-Boot] [PATCH] Make the generic unaligned access code safe for unaligned access

Remy Bohmer linux at bohmer.net
Thu Oct 29 15:34:07 CET 2009


Hi Tom,

>>> Looking at the Linux ARM
>>> version, the basic difference seems to be the header
>>> "include/asm-arm/unaligned.h" which includes this file. The Linux
>>> version of "unaligned.h" does *not* include "access_ok.h" at all. It
>>> includes "le_byteshift.h" and "be_byteshift.h" instead. And I would
>>> really like to keep this in sync with Linux if possible.
>>
>>> So why not do it this way (totally untested):
>
> I see the patch has been reposted.
> Has it been tested ?

Yes, I have tested it, that is why I reposted it according to the
suggestion of Stefan... :-)

Remy


More information about the U-Boot mailing list