diff options
author | David S. Miller <davem@davemloft.net> | 2012-05-11 23:33:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-11 23:33:22 -0400 |
commit | 8695c37d06721c581385725eb80ba4e6d6bdf73f (patch) | |
tree | 072f37f58590aea8ca880b6175d127809edd4cec /arch/sparc/lib/memmove.S | |
parent | b55e81b9f8cf0256bcfc548360aef642630c2919 (diff) |
sparc: Convert some assembler over to linakge.h's ENTRY/ENDPROC
Use those, instead of doing it all by hand.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/lib/memmove.S')
-rw-r--r-- | arch/sparc/lib/memmove.S | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/sparc/lib/memmove.S b/arch/sparc/lib/memmove.S index 97395802c23c..b7f6334e159f 100644 --- a/arch/sparc/lib/memmove.S +++ b/arch/sparc/lib/memmove.S | |||
@@ -4,11 +4,10 @@ | |||
4 | * Copyright (C) 1996, 1997, 1998, 1999 Jakub Jelinek (jj@ultra.linux.cz) | 4 | * Copyright (C) 1996, 1997, 1998, 1999 Jakub Jelinek (jj@ultra.linux.cz) |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/linkage.h> | ||
8 | |||
7 | .text | 9 | .text |
8 | .align 32 | 10 | ENTRY(memmove) /* o0=dst o1=src o2=len */ |
9 | .globl memmove | ||
10 | .type memmove,#function | ||
11 | memmove: /* o0=dst o1=src o2=len */ | ||
12 | mov %o0, %g1 | 11 | mov %o0, %g1 |
13 | cmp %o0, %o1 | 12 | cmp %o0, %o1 |
14 | bleu,pt %xcc, memcpy | 13 | bleu,pt %xcc, memcpy |
@@ -28,4 +27,4 @@ memmove: /* o0=dst o1=src o2=len */ | |||
28 | 27 | ||
29 | retl | 28 | retl |
30 | mov %g1, %o0 | 29 | mov %g1, %o0 |
31 | .size memmove, .-memmove | 30 | ENDPROC(memmove) |