hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/xtensa/lib/usercopy.S
....@@ -54,13 +54,13 @@
5454 */
5555
5656 #include <linux/linkage.h>
57
-#include <variant/core.h>
5857 #include <asm/asmmacro.h>
58
+#include <asm/core.h>
5959
6060 .text
6161 ENTRY(__xtensa_copy_user)
6262
63
- entry sp, 16 # minimal stack frame
63
+ abi_entry_default
6464 # a2/ dst, a3/ src, a4/ len
6565 mov a5, a2 # copy dst so that a2 is return value
6666 mov a11, a4 # preserve original len for error case
....@@ -75,7 +75,7 @@
7575 __ssa8 a3 # set shift amount from byte offset
7676 bnez a4, .Lsrcunaligned
7777 movi a2, 0 # return success for len==0
78
- retw
78
+ abi_ret_default
7979
8080 /*
8181 * Destination is unaligned
....@@ -127,7 +127,7 @@
127127 #endif /* !XCHAL_HAVE_LOOPS */
128128 .Lbytecopydone:
129129 movi a2, 0 # return success for len bytes copied
130
- retw
130
+ abi_ret_default
131131
132132 /*
133133 * Destination and source are word-aligned.
....@@ -187,7 +187,7 @@
187187 EX(10f) s8i a6, a5, 0
188188 .L5:
189189 movi a2, 0 # return success for len bytes copied
190
- retw
190
+ abi_ret_default
191191
192192 /*
193193 * Destination is aligned, Source is unaligned
....@@ -264,7 +264,7 @@
264264 EX(10f) s8i a6, a5, 0
265265 .L15:
266266 movi a2, 0 # return success for len bytes copied
267
- retw
267
+ abi_ret_default
268268
269269 ENDPROC(__xtensa_copy_user)
270270
....@@ -281,4 +281,4 @@
281281 10:
282282 sub a2, a5, a2 /* a2 <-- bytes copied */
283283 sub a2, a11, a2 /* a2 <-- bytes not copied */
284
- retw
284
+ abi_ret_default