Page MenuHomeFreeBSD

libc/aarch64: Add memset for a 64 byte dc zva
Needs ReviewPublic

Authored by andrew on Mon, Jan 19, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 20, 1:14 PM
Unknown Object (File)
Mon, Jan 19, 11:43 PM
Unknown Object (File)
Mon, Jan 19, 10:27 PM
Unknown Object (File)
Mon, Jan 19, 7:53 PM
Unknown Object (File)
Mon, Jan 19, 4:09 PM
Unknown Object (File)
Mon, Jan 19, 2:56 PM
Subscribers

Details

Reviewers
None
Group Reviewers
arm64
Summary

On arm64 we can use the "dc zva" instruction to zero memory. The CPU
tells software if the instruction is implemented, and if so the size
and alignment it will use.

When the size is 64-bytes the Arm Optimized Routines implementation of
memset can use dc zva to zero memory, and has a build flag to skip
checking.

Use this flag to build a version of memset that will be used when this
assumption is true.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69981
Build 66864: arc lint + arc unit