ARM: Use Linux version for unaligned access code
authorRemy Bohmer <linux@bohmer.net>
Thu, 29 Oct 2009 11:29:37 +0000 (12:29 +0100)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 7 Nov 2009 21:56:30 +0000 (15:56 -0600)
commit25793f76bf9a7be59c9415ef0f78d034e8d53dae
tree4063b6e96fdc73e0f05eafd04c3f6c020c9044e2
parentb91b8f74fe9ded18344c3d03080a4abc07254502
ARM: Use Linux version for unaligned access code

The asm-arm/unaligned.h includes linux/unaligned/access_ok.h
This file is unsafe to be used on ARM, since it does an unaligned memory
accesses which fails on ARM.

Lookin at Linux the basic difference seems to be the header
"include/asm-arm/unaligned.h". The Linux version of "unaligned.h"
does *not* include "access_ok.h" at all. It includes "le_byteshift.h"
and "be_byteshift.h" instead.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Stefan Roese <sr@denx.de>
--
 include/asm-arm/unaligned.h            |    3 -
 include/linux/unaligned/be_byteshift.h |   70 +++++++++++++++++++++++++++++++++
 include/linux/unaligned/le_byteshift.h |   70 +++++++++++++++++++++++++++++++++
 3 files changed, 142 insertions(+), 1 deletion(-)
 create mode 100644 include/linux/unaligned/be_byteshift.h
 create mode 100644 include/linux/unaligned/le_byteshift.h
include/asm-arm/unaligned.h
include/linux/unaligned/be_byteshift.h [new file with mode: 0644]
include/linux/unaligned/le_byteshift.h [new file with mode: 0644]