File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -204,27 +204,29 @@ ENTRY(__memcpy_mcsafe)
204
204
subl $8 , %ecx
205
205
negl %ecx
206
206
subl %ecx , %edx
207
- .L_copy_leading_bytes :
207
+ .L_read_leading_bytes :
208
208
movb (%rsi ), %al
209
+ .L_write_leading_bytes:
209
210
movb %al , (%rdi )
210
211
incq %rsi
211
212
incq %rdi
212
213
decl %ecx
213
- jnz .L_copy_leading_bytes
214
+ jnz .L_read_leading_bytes
214
215
215
216
.L_8byte_aligned:
216
217
movl %edx , %ecx
217
218
andl $7 , %edx
218
219
shrl $3 , %ecx
219
220
jz .L_no_whole_words
220
221
221
- .L_copy_words :
222
+ .L_read_words :
222
223
movq (%rsi ), %r8
224
+ .L_write_words:
223
225
movq %r8 , (%rdi )
224
226
addq $8 , %rsi
225
227
addq $8 , %rdi
226
228
decl %ecx
227
- jnz .L_copy_words
229
+ jnz .L_read_words
228
230
229
231
/* Any trailing bytes? */
230
232
.L_no_whole_words:
@@ -233,13 +235,14 @@ ENTRY(__memcpy_mcsafe)
233
235
234
236
/* Copy trailing bytes */
235
237
movl %edx , %ecx
236
- .L_copy_trailing_bytes :
238
+ .L_read_trailing_bytes :
237
239
movb (%rsi ), %al
240
+ .L_write_trailing_bytes:
238
241
movb %al , (%rdi )
239
242
incq %rsi
240
243
incq %rdi
241
244
decl %ecx
242
- jnz .L_copy_trailing_bytes
245
+ jnz .L_read_trailing_bytes
243
246
244
247
/* Copy successful. Return zero */
245
248
.L_done_memcpy_trap:
@@ -256,7 +259,7 @@ EXPORT_SYMBOL_GPL(__memcpy_mcsafe)
256
259
257
260
.previous
258
261
259
- _ASM_EXTABLE_FAULT(.L_copy_leading_bytes , .L_memcpy_mcsafe_fail)
260
- _ASM_EXTABLE_FAULT(.L_copy_words , .L_memcpy_mcsafe_fail)
261
- _ASM_EXTABLE_FAULT(.L_copy_trailing_bytes , .L_memcpy_mcsafe_fail)
262
+ _ASM_EXTABLE_FAULT(.L_read_leading_bytes , .L_memcpy_mcsafe_fail)
263
+ _ASM_EXTABLE_FAULT(.L_read_words , .L_memcpy_mcsafe_fail)
264
+ _ASM_EXTABLE_FAULT(.L_read_trailing_bytes , .L_memcpy_mcsafe_fail)
262
265
#endif
You can’t perform that action at this time.
0 commit comments