strcpy.S 492 B

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