summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/uaccess.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/include/asm/uaccess.h')
-rw-r--r--arch/loongarch/include/asm/uaccess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/include/asm/uaccess.h b/arch/loongarch/include/asm/uaccess.h
index 217c6a3727b1..2b44edc604a2 100644
--- a/arch/loongarch/include/asm/uaccess.h
+++ b/arch/loongarch/include/asm/uaccess.h
@@ -162,7 +162,7 @@ do { \
"2: \n" \
" .section .fixup,\"ax\" \n" \
"3: li.w %0, %3 \n" \
- " or %1, $r0, $r0 \n" \
+ " move %1, $zero \n" \
" b 2b \n" \
" .previous \n" \
" .section __ex_table,\"a\" \n" \