aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/lib/lusercopy.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/lib/lusercopy.S')
-rw-r--r--arch/parisc/lib/lusercopy.S41
1 files changed, 0 insertions, 41 deletions
diff --git a/arch/parisc/lib/lusercopy.S b/arch/parisc/lib/lusercopy.S
index 1bd23ccec17b..6f2d9355efe2 100644
--- a/arch/parisc/lib/lusercopy.S
+++ b/arch/parisc/lib/lusercopy.S
@@ -61,47 +61,6 @@
61 .endm 61 .endm
62 62
63 /* 63 /*
64 * long lstrncpy_from_user(char *dst, const char *src, long n)
65 *
66 * Returns -EFAULT if exception before terminator,
67 * N if the entire buffer filled,
68 * otherwise strlen (i.e. excludes zero byte)
69 */
70
71ENTRY(lstrncpy_from_user)
72 .proc
73 .callinfo NO_CALLS
74 .entry
75 comib,= 0,%r24,$lsfu_done
76 copy %r24,%r23
77 get_sr
781: ldbs,ma 1(%sr1,%r25),%r1
79$lsfu_loop:
80 stbs,ma %r1,1(%r26)
81 comib,=,n 0,%r1,$lsfu_done
82 addib,<>,n -1,%r24,$lsfu_loop
832: ldbs,ma 1(%sr1,%r25),%r1
84$lsfu_done:
85 sub %r23,%r24,%r28
86$lsfu_exit:
87 bv %r0(%r2)
88 nop
89 .exit
90ENDPROC(lstrncpy_from_user)
91
92 .section .fixup,"ax"
933: fixup_branch $lsfu_exit
94 ldi -EFAULT,%r28
95 .previous
96
97 .section __ex_table,"aw"
98 ASM_ULONG_INSN 1b,3b
99 ASM_ULONG_INSN 2b,3b
100 .previous
101
102 .procend
103
104 /*
105 * unsigned long lclear_user(void *to, unsigned long n) 64 * unsigned long lclear_user(void *to, unsigned long n)
106 * 65 *
107 * Returns 0 for success. 66 * Returns 0 for success.