Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | // Copyright (C) 2005-2017 Andes Technology Corporation |
| 3 | |
| 4 | #include <linux/linkage.h> |
| 5 | |
| 6 | |
| 7 | .macro lbi1 dst, addr, adj |
| 8 | lbi.bi \dst, [\addr], \adj |
| 9 | .endm |
| 10 | |
| 11 | .macro sbi1 src, addr, adj |
| 12 | sbi.bi \src, [\addr], \adj |
| 13 | .endm |
| 14 | |
| 15 | .macro lmw1 start_reg, addr, end_reg |
| 16 | lmw.bim \start_reg, [\addr], \end_reg |
| 17 | .endm |
| 18 | |
| 19 | .macro smw1 start_reg, addr, end_reg |
| 20 | smw.bim \start_reg, [\addr], \end_reg |
| 21 | .endm |
| 22 | |
| 23 | .text |
| 24 | ENTRY(memcpy) |
| 25 | move $r5, $r0 |
| 26 | #include "copy_template.S" |
| 27 | move $r0, $r5 |
| 28 | ret |
| 29 | |
| 30 | ENDPROC(memcpy) |