hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/arch/arm64/lib/memset.S
....@@ -1,25 +1,13 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 ARM Ltd.
34 * Copyright (C) 2013 Linaro.
45 *
56 * This code is based on glibc cortex strings work originally authored by Linaro
6
- * and re-licensed under GPLv2 for the Linux kernel. The original code can
77 * be found @
88 *
99 * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/
1010 * files/head:/src/aarch64/
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License version 2 as
14
- * published by the Free Software Foundation.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
2311 */
2412
2513 #include <linux/linkage.h>
....@@ -54,8 +42,8 @@
5442 tmp3w .req w9
5543 tmp3 .req x9
5644
57
-ENTRY(__memset)
58
-WEAK(memset)
45
+SYM_FUNC_START_ALIAS(__memset)
46
+SYM_FUNC_START_WEAK_PI(memset)
5947 mov dst, dstin /* Preserve return value. */
6048 and A_lw, val, #255
6149 orr A_lw, A_lw, A_lw, lsl #8
....@@ -214,5 +202,7 @@
214202 ands count, count, zva_bits_x
215203 b.ne .Ltail_maybe_long
216204 ret
217
-ENDPIPROC(memset)
218
-ENDPROC(__memset)
205
+SYM_FUNC_END_PI(memset)
206
+EXPORT_SYMBOL(memset)
207
+SYM_FUNC_END_ALIAS(__memset)
208
+EXPORT_SYMBOL(__memset)