Skip to content

Commit f190594

Browse files
XiaoWang1772palmer-dabbelt
authored andcommitted
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 <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 7e6eae2 commit f190594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/lib/uaccess.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ SYM_FUNC_START(fallback_scalar_usercopy)
103103
fixup REG_S t4, 7*SZREG(a0), 10f
104104
addi a0, a0, 8*SZREG
105105
addi a1, a1, 8*SZREG
106-
bltu a0, t0, 2b
106+
bleu a0, t0, 2b
107107

108108
addi t0, t0, 8*SZREG /* revert to original value */
109109
j .Lbyte_copy_tail

0 commit comments

Comments
 (0)