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