diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-08-11 10:30:25 +0300 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-08-20 13:39:27 +0300 |
commit | 2df4c9a741a0b5e2883cc356c1b724d1f739fb55 (patch) | |
tree | fb0a1688f228d9003d2a7d23ac3422f944969ccc /arch/arm/lib | |
parent | 7e2d8c29ecdd86afbcedb9d9a977bab8af527add (diff) | |
download | linux-2df4c9a741a0b5e2883cc356c1b724d1f739fb55.tar.xz |
ARM: 9112/1: uaccess: add __{get,put}_kernel_nofault
These mimic the behavior of get_user and put_user, except
for domain switching, address limit checking and handling
of mismatched sizes, none of which are relevant here.
To work with pre-Armv6 kernels, this has to avoid TUSER()
inside of the new macros, the new approach passes the "t"
string along with the opcode, which is a bit uglier but
avoids duplicating more code.
As there is no __get_user_asm_dword(), I work around it
by copying 32 bit at a time, which is possible because
the output size is known.
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/lib')
0 files changed, 0 insertions, 0 deletions