1 /* strncpy_from_user.S: Sparc strncpy from userspace.
3 * Copyright(C) 1996 David S. Miller
6 #include <asm/cprefix.h>
7 #include <asm/ptrace.h>
15 * -EFAULT for an exception
16 * count if we hit the buffer limit
17 * bytes copied if we hit a null byte
20 .globl C_LABEL(__strncpy_from_user)
21 C_LABEL(__strncpy_from_user):
22 /* %o0=dest, %o1=src, %o2=count */
40 .section .fixup,#alloc,#execinstr
46 .section __ex_table,#alloc