Page MenuHomeFreeBSD

pmap: prefer memcpy over bcopy
ClosedPublic

Authored by brooks on Fri, Jun 19, 9:27 PM.
Tags
None
Referenced Files
F160299964: D57687.diff
Tue, Jun 23, 1:36 AM
F160286729: D57687.diff
Mon, Jun 22, 11:06 PM
Unknown Object (File)
Sat, Jun 20, 3:30 AM
Subscribers

Details

Summary

Alter pmap_copy_page(s) to use memcpy rather than the deprecated bcopy.
We'll be adding non-provenance preserving versions for CHERI support and
wouod like to avoid introducing variants of deprecated APIs.

Suggested by: emaste
Sponsored by: Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 74033
Build 70916: arc lint + arc unit

Event Timeline

amd64 is fine, but there are tons of bcopy use in amd64/amd64/*.c. Why is it fine for them to stay with bcopy? Or put it differently, why amd64 is affected at all?

This revision is now accepted and ready to land.Sat, Jun 20, 11:01 AM
In D57687#1322718, @kib wrote:

amd64 is fine, but there are tons of bcopy use in amd64/amd64/*.c. Why is it fine for them to stay with bcopy? Or put it differently, why amd64 is affected at all?

My aim was to eliminate bcopy in pmap_copy_page(s) in a consistent way. It seemed appropriate to replace the small number of remaining bcopies in the same file.

For some reason this failed to auto close. I've manually linked rG2ee2ef607f60.