Page MenuHomeFreeBSD

amd64: import updated kernel memmove to libc
ClosedPublic

Authored by mjg on Oct 12 2018, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 6:22 PM
Unknown Object (File)
Thu, Dec 5, 8:02 AM
Unknown Object (File)
Tue, Nov 26, 11:05 PM
Unknown Object (File)
Nov 19 2024, 1:15 PM
Unknown Object (File)
Nov 19 2024, 1:15 PM
Unknown Object (File)
Nov 19 2024, 1:15 PM
Unknown Object (File)
Nov 19 2024, 1:15 PM
Unknown Object (File)
Nov 19 2024, 12:53 PM
Subscribers

Details

Summary

bcopy is left alone as it is expected to be converted to a C func.

Due to header mess ALIGN_TEXT is temporarily defined explicitly in memmove.S

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/amd64/string/memmove.S
28 ↗(On Diff #49072)

Do you need two tags ?

39 ↗(On Diff #49072)

Is it still true statement ?

  • drop extra fbsd tag
  • reword the attribution comment

The code is definitely no longer 'adapted', but it still contains some of the original bcopy (initial overlap check and part of copying backwards with rep stosq). I'm not comfortable dropping the comment without approval from the author.

kib added inline comments.
lib/libc/amd64/string/memmove.S
39 ↗(On Diff #49102)

May be also add a note similar to 'try to keep in sync with <kernel file path>'

This revision is now accepted and ready to land.Oct 13 2018, 6:48 PM
mjg marked an inline comment as done.Oct 13 2018, 6:50 PM
mjg added inline comments.
lib/libc/amd64/string/memmove.S
39 ↗(On Diff #49102)

I'll do a separate pass to also cover memset.

This revision was automatically updated to reflect the committed changes.