diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-23 12:38:08 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-04-23 15:51:40 -0400 |
commit | bd79f94758c011bdffd8d4afcfb578d169cb5e93 (patch) | |
tree | a6a192d9e83428b5cf234370df06d4e29c593761 /lib | |
parent | c67fdc1f00cba9de86c30f5a01eff21d3ea66c8f (diff) |
asm-generic: provide entirely generic nommu uaccess
Move the code to implement uaccess using memcpy or direct loads and
stores to asm-generic/uaccess.h and make it selectable kconfig option.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index a9e56539bd11..7a3f01ac45e8 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
@@ -591,6 +591,10 @@ config ARCH_NO_SG_CHAIN | |||
591 | config ARCH_HAS_PMEM_API | 591 | config ARCH_HAS_PMEM_API |
592 | bool | 592 | bool |
593 | 593 | ||
594 | # use memcpy to implement user copies for nommu architectures | ||
595 | config UACCESS_MEMCPY | ||
596 | bool | ||
597 | |||
594 | config ARCH_HAS_UACCESS_FLUSHCACHE | 598 | config ARCH_HAS_UACCESS_FLUSHCACHE |
595 | bool | 599 | bool |
596 | 600 | ||