diff options
| author | Remy Bohmer <[email protected]> | 2009-10-29 12:29:37 +0100 |
|---|---|---|
| committer | Tom Rix <[email protected]> | 2009-11-07 15:56:30 -0600 |
| commit | 25793f76bf9a7be59c9415ef0f78d034e8d53dae (patch) | |
| tree | 4063b6e96fdc73e0f05eafd04c3f6c020c9044e2 /include/linux/string.h | |
| parent | b91b8f74fe9ded18344c3d03080a4abc07254502 (diff) | |
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 <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
--
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
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
