HomeFreeBSD

Use the cached dc zva length in arm64 memset

Description

Use the cached dc zva length in arm64 memset

On boot we cache the length the 'dc zva' instruction will zero. Use
this in the memset function to decide when to use it. As the cached
value is in .bss it will be zero on boot so memset is safe to use
before the value has been read.

Sponsored by: The FreeBSD Foundation

Details

Provenance
andrewAuthored on Sep 7 2022, 11:43 AM
Parents
rG949bc17cf28b: Import the arm64 Cortex Strings memset into the kernel
Branches
Unknown
Tags
Unknown