[PATCH 0/2] riscv: misaligned: Add ZCB handling and fix sleeping function

Nylon Chen nylon.chen at sifive.com
Fri Apr 11 00:38:48 PDT 2025


1. Adds support for ZCB compressed instructions (C.LHU, C.LH, C.SH).

2. Fixes a bug where copy_from/to_user() calls in non-sleepable contexts
triggered attempts to sleep.

Signed-off-by: Zong Li <zong.li at sifive.com>
Signed-off-by: Nylon Chen nylon.chen at sifive.com

Nylon Chen (2):
  riscv: misaligned: Add handling for ZCB instructions
  riscv: misaligned: fix sleeping function called during misaligned
    access handling

 arch/riscv/kernel/traps_misaligned.c | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

-- 
2.34.1




More information about the linux-riscv mailing list