asm-generic: add a generic uaccess.h
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 May 2009 22:56:37 +0000 (22:56 +0000)
committerArnd Bergmann <arnd@klappe2.(none)>
Thu, 11 Jun 2009 19:02:50 +0000 (21:02 +0200)
commiteed417ddd52146f446595b5a7d8f21b1814b95b7
tree272b71df46768a0d37bfb36e0cd701f01b109035
parent5c01b46bb6bb8f2662573c05c87b5d68fa25af89
asm-generic: add a generic uaccess.h

Based on discussions with Michal Simek and code
from m68knommu and h8300, this version of uaccess.h
should be usable by most architectures, by overriding
some parts of it.

Simple NOMMU architectures can use it out of
the box, but a minimal __access_ok() should be
added there as well.

Cc: Michal Simek <monstr@monstr.eu>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/uaccess.h [new file with mode: 0644]