riscv: uaccess: Allow the last potential unrolled copy
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 13 Mar 2024 10:33:34 +0000 (18:33 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 22 May 2024 23:12:54 +0000 (16:12 -0700)
commitf1905946bed052522522303f1d144f506ef5d9f9
treec202023751bdb1d8550881e63b4ff3cc490b024c
parent7e6eae24daf6bdb812c14d40b76c23de1371149d
riscv: uaccess: Allow the last potential unrolled copy

When the dst buffer pointer points to the last accessible aligned addr, we
could still run another iteration of unrolled copy.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20240313103334.4036554-1-xiao.w.wang@intel.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/lib/uaccess.S