diff options
author | James Bottomley <JBottomley@Parallels.com> | 2012-05-26 04:48:19 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-31 06:14:37 -0400 |
commit | b1195c0e3ee1a1ba986923bf3ed8311b7b336432 (patch) | |
tree | 026ecd136a3001db5699baf499f061cc971f66e2 /arch/parisc/lib/lusercopy.S | |
parent | 8275b91aad22144c4e2ea0c68b8d51090a81ba31 (diff) |
[PARISC] update parisc to use generic strncpy_from_user()
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'arch/parisc/lib/lusercopy.S')
-rw-r--r-- | arch/parisc/lib/lusercopy.S | 41 |
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 | |||
71 | ENTRY(lstrncpy_from_user) | ||
72 | .proc | ||
73 | .callinfo NO_CALLS | ||
74 | .entry | ||
75 | comib,= 0,%r24,$lsfu_done | ||
76 | copy %r24,%r23 | ||
77 | get_sr | ||
78 | 1: 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 | ||
83 | 2: 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 | ||
90 | ENDPROC(lstrncpy_from_user) | ||
91 | |||
92 | .section .fixup,"ax" | ||
93 | 3: 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. |