Commit adb68c82 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] parisc: remove lcopy_*_user

remove the now unused lcopy_*_user routines
Committed-by: default avatarRandolph Chung <tausq@parisc-linux.org>
parent acbf2f79
...@@ -53,124 +53,11 @@ ...@@ -53,124 +53,11 @@
mtsp %r1,%sr1 mtsp %r1,%sr1
.endm .endm
/* .macro fixup_branch lbl
* unsigned long ldil L%\lbl, %r1
* lcopy_to_user(void *to, const void *from, unsigned long n) ldo R%\lbl(%r1), %r1
* bv %r0(%r1)
* Returns 0 for success. .endm
* otherwise, returns number of bytes not transferred.
*/
.export lcopy_to_user,code
lcopy_to_user:
.proc
.callinfo NO_CALLS
.entry
comib,=,n 0,%r24,$lctu_done
get_sr
$lctu_loop:
ldbs,ma 1(%r25),%r1
addib,<> -1,%r24,$lctu_loop
1: stbs,ma %r1,1(%sr1,%r26)
$lctu_done:
bv %r0(%r2)
copy %r24,%r28
.exit
2: b $lctu_done
ldo 1(%r24),%r24
.section __ex_table,"a"
#ifdef __LP64__
.dword 1b,(2b-1b)
#else
.word 1b,(2b-1b)
#endif
.previous
.procend
/*
* unsigned long
* lcopy_from_user(void *to, const void *from, unsigned long n)
*
* Returns 0 for success.
* otherwise, returns number of bytes not transferred.
*
* NOTE: This routine will also zero any bytes in the
* destination that were not copied due to a fault.
*
*/
.export lcopy_from_user,code
lcopy_from_user:
.proc
.callinfo NO_CALLS
.entry
comib,=,n 0,%r24,$lcfu_done
get_sr
$lcfu_loop:
1: ldbs,ma 1(%sr1,%r25),%r1
addib,<> -1,%r24,$lcfu_loop
stbs,ma %r1,1(%r26)
$lcfu_done:
bv %r0(%r2)
copy %r24,%r28
.exit
2: copy %r24,%r23
$lcfu_zero_loop:
addib,<> -1,%r23,$lcfu_zero_loop
stbs,ma %r0,1(%r26)
b $lcfu_done
nop
.section __ex_table,"a"
#ifdef __LP64__
.dword 1b,(2b-1b)
#else
.word 1b,(2b-1b)
#endif
.previous
.procend
/*
* unsigned long
* lcopy_in_user(void *to, const void *from, unsigned long n)
*
* Returns 0 for success.
* otherwise, returns number of bytes not transferred.
*/
.export lcopy_in_user,code
lcopy_in_user:
.proc
.callinfo NO_CALLS
.entry
comib,=,n 0,%r24,$lciu_done
get_sr
$lciu_loop:
ldbs,ma 1(%sr1,%r25),%r1
addib,<> -1,%r24,$lciu_loop
1: stbs,ma %r1,1(%sr1,%r26)
$lciu_done:
bv %r0(%r2)
copy %r24,%r28
.exit
2: b $lciu_done
ldo 1(%r24),%r24
.section __ex_table,"a"
#ifdef __LP64__
.dword 1b,(2b-1b)
#else
.word 1b,(2b-1b)
#endif
.previous
.procend
/* /*
* long lstrncpy_from_user(char *dst, const char *src, long n) * long lstrncpy_from_user(char *dst, const char *src, long n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment