[git commit nptl] libc_sh: Update memcpy to use the ENTRY macro

Carmelo Amoroso carmelo.amoroso at st.com
Fri Apr 2 16:01:41 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=63859f89f327e48037a4cdba982cd6afa3007da7
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

Use the ENTRY macro now available through the sysdep.h header

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 libc/string/sh/sh4/memcpy.S |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/libc/string/sh/sh4/memcpy.S b/libc/string/sh/sh4/memcpy.S
index c03c18c..efdaf8b 100644
--- a/libc/string/sh/sh4/memcpy.S
+++ b/libc/string/sh/sh4/memcpy.S
@@ -18,6 +18,7 @@
  * If there is an overlap, then the results are undefined.
  */
 
+#include <sysdep.h>
 #include <endian.h>
 
 #ifdef __LITTLE_ENDIAN__
@@ -176,12 +177,7 @@
 9:	rts
 	 nop
 
-/* void * memcpy(void *dst, const void *src, size_t len) */
-.text
-.align 4
-.type  memcpy, at function
-.globl memcpy;
-memcpy:
+ENTRY(memcpy)
 
 	! Calculate the invariants which will be used in the remainder
 	! of the code:
@@ -908,6 +904,5 @@ memcpy:
 	rts
 	 mov.b	r1, at -r0
 
-.size memcpy,.-memcpy;
-
+END(memcpy)
 libc_hidden_def (memcpy)
-- 
1.6.3.3



More information about the uClibc-cvs mailing list