diff options
author | Clément Léger <[email protected]> | 2023-10-04 17:13:59 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-11-01 08:34:53 -0700 |
commit | 7c83232161f609bbc452a1255f823f41afc411dd (patch) | |
tree | 8c03bf915d29719e12c25ba4ec0e805b3c5e10de /net/lapb/lapb_out.c | |
parent | f19c3b4239f5bfb69aacbaf75d4277c095e7aa7d (diff) |
riscv: add support for misaligned trap handling in S-mode
Misalignment trap handling is only supported for M-mode and uses direct
accesses to user memory. In S-mode, when handling usermode fault, this
requires to use the get_user()/put_user() accessors. Implement
load_u8(), store_u8() and get_insn() using these accessors for
userspace and direct text access for kernel.
Signed-off-by: Clément Léger <[email protected]>
Reviewed-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions