Skip to content

Commit dbee9c9

Browse files
NonerKaopalmer-dabbelt
authored andcommitted
riscv: fix accessing 8-byte variable from RV32
A memory save operation to 8-byte variable in RV32 is divided into two sw instructions in the put_user macro. The current fixup returns execution flow to the second sw instead of the one after it. This patch fixes this fixup code according to the load access part. Signed-off-by: Alan Kao<alankao@andestech.com> Cc: Greentime Hu <greentime@andestech.com> Cc: Vincent Chen <deanbo422@gmail.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent 8c2ffd9 commit dbee9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/include/asm/uaccess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ do { \
300300
" .balign 4\n" \
301301
"4:\n" \
302302
" li %0, %6\n" \
303-
" jump 2b, %1\n" \
303+
" jump 3b, %1\n" \
304304
" .previous\n" \
305305
" .section __ex_table,\"a\"\n" \
306306
" .balign " RISCV_SZPTR "\n" \

0 commit comments

Comments
 (0)