1
2
3
4
5
6
7
8
9
10
11
12
13 #include <linux/linkage.h>
14 #include <asm/assembler.h>
15 #include <asm/cache.h>
16
17
18
19
20
21
22
23
24
25
26
27 .macro ldrb1 ptr, regB, val
28 ldrb \ptr, [\regB], \val
29 .endm
30
31 .macro strb1 ptr, regB, val
32 strb \ptr, [\regB], \val
33 .endm
34
35 .macro ldrh1 ptr, regB, val
36 ldrh \ptr, [\regB], \val
37 .endm
38
39 .macro strh1 ptr, regB, val
40 strh \ptr, [\regB], \val
41 .endm
42
43 .macro ldr1 ptr, regB, val
44 ldr \ptr, [\regB], \val
45 .endm
46
47 .macro str1 ptr, regB, val
48 str \ptr, [\regB], \val
49 .endm
50
51 .macro ldp1 ptr, regB, regC, val
52 ldp \ptr, \regB, [\regC], \val
53 .endm
54
55 .macro stp1 ptr, regB, regC, val
56 stp \ptr, \regB, [\regC], \val
57 .endm
58
59 .weak memcpy
60 ENTRY(__memcpy)
61 ENTRY(memcpy)
62 #include "copy_template.S"
63 ret
64 ENDPIPROC(memcpy)
65 EXPORT_SYMBOL(memcpy)
66 ENDPROC(__memcpy)
67 EXPORT_SYMBOL(__memcpy)