parisc: Implement __get/put_kernel_nofault()
authorHelge Deller <deller@gmx.de>
Thu, 9 Sep 2021 10:47:00 +0000 (12:47 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 9 Sep 2021 20:53:09 +0000 (22:53 +0200)
commit671028728083e856e9919221b109e3b2cd2ccc49
tree33ffc4a1a206297eab9314d3fd00eaba29417a32
parentd97180ad68bdb7ee10f327205a649bc2f558741d
parisc: Implement __get/put_kernel_nofault()

Remove CONFIG_SET_FS from parisc, so we need to add
__get_kernel_nofault() and __put_kernel_nofault(), define
HAVE_GET_KERNEL_NOFAULT and remove set_fs(), get_fs(), load_sr2(),
thread_info->addr_limit, KERNEL_DS and USER_DS.

The nice side-effect of this patch is that we now can directly access
userspace via sr3 without the need to use a temporary sr2 which is
either copied from sr3 or set to zero (for kernel space).

Signed-off-by: Helge Deller <deller@gmx.de>
Suggested-by: Arnd Bergmann <arnd@kernel.org>
arch/parisc/Kconfig
arch/parisc/include/asm/processor.h
arch/parisc/include/asm/thread_info.h
arch/parisc/include/asm/uaccess.h
arch/parisc/kernel/asm-offsets.c
arch/parisc/lib/lusercopy.S