| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2013 ARM Ltd. |
|---|
| 3 | 4 | * Copyright (C) 2013 Linaro. |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * 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 |
|---|
| 7 | 7 | * be found @ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ |
|---|
| 10 | 10 | * 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/>. |
|---|
| 23 | 11 | */ |
|---|
| 24 | 12 | |
|---|
| 25 | 13 | #include <linux/linkage.h> |
|---|
| .. | .. |
|---|
| 57 | 45 | D_l .req x13 |
|---|
| 58 | 46 | D_h .req x14 |
|---|
| 59 | 47 | |
|---|
| 60 | | -ENTRY(__memmove) |
|---|
| 61 | | -WEAK(memmove) |
|---|
| 48 | +SYM_FUNC_START_ALIAS(__memmove) |
|---|
| 49 | +SYM_FUNC_START_WEAK_PI(memmove) |
|---|
| 62 | 50 | cmp dstin, src |
|---|
| 63 | 51 | b.lo __memcpy |
|---|
| 64 | 52 | add tmp1, src, count |
|---|
| .. | .. |
|---|
| 195 | 183 | tst count, #0x3f |
|---|
| 196 | 184 | b.ne .Ltail63 |
|---|
| 197 | 185 | ret |
|---|
| 198 | | -ENDPIPROC(memmove) |
|---|
| 199 | | -ENDPROC(__memmove) |
|---|
| 186 | +SYM_FUNC_END_PI(memmove) |
|---|
| 187 | +EXPORT_SYMBOL(memmove) |
|---|
| 188 | +SYM_FUNC_END_ALIAS(__memmove) |
|---|
| 189 | +EXPORT_SYMBOL(__memmove) |
|---|