Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * arch/alpha/lib/strcpy.S
0004  * Contributed by Richard Henderson (rth@tamu.edu)
0005  *
0006  * Copy a null-terminated string from SRC to DST.  Return a pointer
0007  * to the null-terminator in the source.
0008  */
0009 #include <asm/export.h>
0010     .text
0011 
0012     .align 3
0013     .globl strcpy
0014     .ent strcpy
0015 strcpy:
0016     .frame $30, 0, $26
0017     .prologue 0
0018 
0019     mov $16, $0     # set up return value
0020     mov $26, $23    # set up return address
0021     unop
0022     br  __stxcpy    # do the copy
0023 
0024     .end strcpy
0025     EXPORT_SYMBOL(strcpy)