OSDN Git Service

libc_sh: Update memcpy to use the ENTRY macro
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 10 Feb 2010 14:24:03 +0000 (15:24 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Wed, 10 Feb 2010 14:24:03 +0000 (15:24 +0100)
Use the ENTRY macro now available through the sysdep.h header

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
libc/string/sh/sh4/memcpy.S

index c03c18c..efdaf8b 100644 (file)
@@ -18,6 +18,7 @@
  * If there is an overlap, then the results are undefined.
  */
 
+#include <sysdep.h>
 #include <endian.h>
 
 #ifdef __LITTLE_ENDIAN__
 9:     rts
         nop
 
-/* void * memcpy(void *dst, const void *src, size_t len) */
-.text
-.align 4
-.type  memcpy,@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,@-r0
 
-.size memcpy,.-memcpy;
-
+END(memcpy)
 libc_hidden_def (memcpy)