HomeFreeBSD

sys: Consolidate common implementation details of PV entries.

Description

sys: Consolidate common implementation details of PV entries.

Add a <sys/_pv_entry.h> intended for use in <machine/pmap.h> to
define struct pv_entry, pv_chunk, and related macros and inline
functions.

Note that powerpc does not yet use this as while the mmu_radix pmap
in powerpc uses the new scheme (albeit with fewer PV entries in a
chunk than normal due to an used pv_pmap field in struct pv_entry),
the Book-E pmaps for powerpc use the older style PV entries without
chunks (and thus require the pv_pmap field).

Suggested by: kib
Reviewed by: kib
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D36685

Details

Provenance
jhbAuthored on Oct 7 2022, 5:14 PM
Reviewer
kib
Differential Revision
D36685: sys: Consolidate common implementation details of PV entries.
Parents
rG61ab88d87330: if_ovpn: remove an incorrect assertion
Branches
Unknown
Tags
Unknown