|
@@ -236,8 +236,6 @@ ENDPROC(copy_user_generic_unrolled)
|
|
ENTRY(copy_user_generic_string)
|
|
ENTRY(copy_user_generic_string)
|
|
CFI_STARTPROC
|
|
CFI_STARTPROC
|
|
ASM_STAC
|
|
ASM_STAC
|
|
- andl %edx,%edx
|
|
|
|
- jz 4f
|
|
|
|
cmpl $8,%edx
|
|
cmpl $8,%edx
|
|
jb 2f /* less than 8 bytes, go to byte copy loop */
|
|
jb 2f /* less than 8 bytes, go to byte copy loop */
|
|
ALIGN_DESTINATION
|
|
ALIGN_DESTINATION
|
|
@@ -249,7 +247,7 @@ ENTRY(copy_user_generic_string)
|
|
2: movl %edx,%ecx
|
|
2: movl %edx,%ecx
|
|
3: rep
|
|
3: rep
|
|
movsb
|
|
movsb
|
|
-4: xorl %eax,%eax
|
|
|
|
|
|
+ xorl %eax,%eax
|
|
ASM_CLAC
|
|
ASM_CLAC
|
|
ret
|
|
ret
|
|
|
|
|
|
@@ -279,12 +277,10 @@ ENDPROC(copy_user_generic_string)
|
|
ENTRY(copy_user_enhanced_fast_string)
|
|
ENTRY(copy_user_enhanced_fast_string)
|
|
CFI_STARTPROC
|
|
CFI_STARTPROC
|
|
ASM_STAC
|
|
ASM_STAC
|
|
- andl %edx,%edx
|
|
|
|
- jz 2f
|
|
|
|
movl %edx,%ecx
|
|
movl %edx,%ecx
|
|
1: rep
|
|
1: rep
|
|
movsb
|
|
movsb
|
|
-2: xorl %eax,%eax
|
|
|
|
|
|
+ xorl %eax,%eax
|
|
ASM_CLAC
|
|
ASM_CLAC
|
|
ret
|
|
ret
|
|
|
|
|