]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: extable: add a dedicated uaccess handler
authorJisheng Zhang <jszhang@kernel.org>
Thu, 18 Nov 2021 11:26:51 +0000 (19:26 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 6 Jan 2022 01:53:29 +0000 (17:53 -0800)
commit8a2fea88ca0cb1b0ae177ffe3aa937b364b5e61e
tree6a89702c494a0eb3c28f0755db26de4576f0a35d
parent5a0598eae81115b4b72ba621475bddd927b79a97
riscv: extable: add a dedicated uaccess handler

Inspired by commit 59631fa77bfb ("arm64: extable: add a dedicated
uaccess handler"), do similar to riscv to add a dedicated uaccess
exception handler to update registers in exception context and
subsequently return back into the function which faulted, so we remove
the need for fixups specialized to each faulting instruction.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/asm-extable.h
arch/riscv/include/asm/futex.h
arch/riscv/include/asm/uaccess.h
arch/riscv/mm/extable.c