Page MenuHomeFreeBSD

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

Authored by andrew on Mon, Jan 19, 12:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 7:39 AM
Unknown Object (File)
Fri, Jan 30, 9:03 PM
Unknown Object (File)
Sun, Jan 25, 5:14 AM
Unknown Object (File)
Sat, Jan 24, 9:42 PM
Unknown Object (File)
Sat, Jan 24, 7:12 AM
Unknown Object (File)
Thu, Jan 22, 5:20 PM
Unknown Object (File)
Tue, Jan 20, 1:14 PM
Unknown Object (File)
Mon, Jan 19, 11:43 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable