powerpc: Define and use get_user_instr() et. al.
authorJordan Niethe <jniethe5@gmail.com>
Wed, 6 May 2020 03:40:36 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 May 2020 14:10:37 +0000 (00:10 +1000)
commit5249385ad7f0ac178433f0ae9cc5b64612c8ff77
tree3624e16bb981dd5da8e74ae28b08695bf42e878c
parenta8646f43ba5046e7f5c4396125d5136bfcb17b49
powerpc: Define and use get_user_instr() et. al.

Define specialised get_user_instr(), __get_user_instr() and
__get_user_instr_inatomic() macros for reading instructions from user
and/or kernel space.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
[mpe: Squash in addition of get_user_instr() & __user annotations]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200506034050.24806-17-jniethe5@gmail.com
arch/powerpc/include/asm/uaccess.h
arch/powerpc/kernel/align.c
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/vecemu.c