OSDN Git Service

m68k: Provide __{get,put}_kernel_nofault
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Sep 2021 07:04:04 +0000 (09:04 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 24 Sep 2021 11:35:07 +0000 (13:35 +0200)
commit8ade83390930d61c64fe3ab49081990c9d43d0d2
tree79287dcc9fee81f455ed8636d1f13f3bb45770c3
parent01eec1af5ec49b331948ace8f2287580e1594383
m68k: Provide __{get,put}_kernel_nofault

Allow non-faulting access to kernel addresses without overriding the
address space.  Implemented by passing the instruction name to the
low-level assembly macros as an argument, and force the use of the
normal move instructions for kernel access.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Michael Schmitz <schmitzmic@gmail.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Link: https://lore.kernel.org/r/20210916070405.52750-6-hch@lst.de
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/uaccess.h