forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/xtensa/lib/memset.S
....@@ -12,8 +12,8 @@
1212 */
1313
1414 #include <linux/linkage.h>
15
-#include <variant/core.h>
1615 #include <asm/asmmacro.h>
16
+#include <asm/core.h>
1717
1818 /*
1919 * void *memset(void *dst, int c, size_t length)
....@@ -34,7 +34,7 @@
3434 ENTRY(__memset)
3535 WEAK(memset)
3636
37
- entry sp, 16 # minimal stack frame
37
+ abi_entry_default
3838 # a2/ dst, a3/ c, a4/ length
3939 extui a3, a3, 0, 8 # mask to just 8 bits
4040 slli a7, a3, 8 # duplicate character in all bytes of word
....@@ -48,7 +48,7 @@
4848 srli a7, a4, 4 # number of loop iterations with 16B
4949 # per iteration
5050 bnez a4, .Laligned
51
- retw
51
+ abi_ret_default
5252
5353 /*
5454 * Destination is word-aligned.
....@@ -95,7 +95,7 @@
9595 EX(10f) s8i a3, a5, 0
9696 .L5:
9797 .Lret1:
98
- retw
98
+ abi_ret_default
9999
100100 /*
101101 * Destination is unaligned
....@@ -139,7 +139,7 @@
139139 blt a5, a6, .Lbyteloop
140140 #endif /* !XCHAL_HAVE_LOOPS */
141141 .Lbytesetdone:
142
- retw
142
+ abi_ret_default
143143
144144 ENDPROC(__memset)
145145
....@@ -150,4 +150,4 @@
150150
151151 10:
152152 movi a2, 0
153
- retw
153
+ abi_ret_default