hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/riscv/lib/memcpy.S
....@@ -1,21 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 Regents of the University of California
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation, version 2.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135
146 #include <linux/linkage.h>
157 #include <asm/asm.h>
168
179 /* void *memcpy(void *, const void *, size_t) */
18
-ENTRY(memcpy)
10
+ENTRY(__memcpy)
11
+WEAK(memcpy)
1912 move t6, a0 /* Preserve return value */
2013
2114 /* Defer to byte-oriented copy for small sizes */
....@@ -112,4 +105,4 @@
112105 bltu a1, a3, 5b
113106 6:
114107 ret
115
-END(memcpy)
108
+END(__memcpy)