strcpy.S 453 B

12345678910111213141516171819202122232425
  1. /*
  2. * arch/alpha/lib/strcpy.S
  3. * Contributed by Richard Henderson (rth@tamu.edu)
  4. *
  5. * Copy a null-terminated string from SRC to DST. Return a pointer
  6. * to the null-terminator in the source.
  7. */
  8. #include <asm/export.h>
  9. .text
  10. .align 3
  11. .globl strcpy
  12. .ent strcpy
  13. strcpy:
  14. .frame $30, 0, $26
  15. .prologue 0
  16. mov $16, $0 # set up return value
  17. mov $26, $23 # set up return address
  18. unop
  19. br __stxcpy # do the copy
  20. .end strcpy
  21. EXPORT_SYMBOL(strcpy)