riscv: extable: add a dedicated uaccess handler

Inspired by commit 2e77a62cb3 ("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>
This commit is contained in:
Jisheng Zhang 2021-11-18 19:26:51 +08:00 • committed by Palmer Dabbelt
commit 20802d8d47
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889
4 changed files with 78 additions and 70 deletions