1 /* strncpy_from_user.S: Sparc strncpy from userspace.
3 * Copyright(C) 1996 David S. Miller
6 #include <linux/linkage.h>
7 #include <asm/ptrace.h>
14 * -EFAULT for an exception
15 * count if we hit the buffer limit
16 * bytes copied if we hit a null byte
19 ENTRY(__strncpy_from_user)
20 /* %o0=dest, %o1=src, %o2=count */
37 ENDPROC(__strncpy_from_user)
39 .section .fixup,#alloc,#execinstr
45 .section __ex_table,#alloc