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
8lbi.bi	\dst, [\addr], \adj
9.endm
10
11.macro 	sbi1 src, addr, adj
12sbi.bi	\src, [\addr], \adj
13.endm
14
15.macro	lmw1 start_reg, addr, end_reg
16lmw.bim \start_reg, [\addr], \end_reg
17.endm
18
19.macro	smw1 start_reg, addr, end_reg
20smw.bim \start_reg, [\addr], \end_reg
21.endm
22
23.text
24ENTRY(memcpy)
25	move	$r5, $r0
26#include "copy_template.S"
27	move	$r0, $r5
28	ret
29
30ENDPROC(memcpy)
31