hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/riscv/lib/memset.S
....@@ -1,14 +1,6 @@
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
....@@ -16,7 +8,8 @@
168 #include <asm/asm.h>
179
1810 /* void *memset(void *, int, size_t) */
19
-ENTRY(memset)
11
+ENTRY(__memset)
12
+WEAK(memset)
2013 move t0, a0 /* Preserve return value */
2114
2215 /* Defer to byte-oriented fill for small sizes */
....@@ -117,4 +110,4 @@
117110 bltu t0, a3, 5b
118111 6:
119112 ret
120
-END(memset)
113
+END(__memset)