HomeFreeBSD

arm64 pmap: Simplify logic around pv_chunk sizes.

Description

arm64 pmap: Simplify logic around pv_chunk sizes.

  • Define PC_FREEL and _NPCM in terms of _NPCPV rather than via magic numbers.
  • Remove assertions about _NPC* values from pmap.c. This is less relevant now that PC_FREEL and _NPCM are derived from _NPCPV.
  • Add a helper inline function pc_is_full() which uses a loop to check if pc_map is all zeroes. Use this to replace three places that check for a full mask assuming there are only 3 entries in pc_map.

Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D36217

Details

Provenance
jhbAuthored on Aug 17 2022, 7:10 PM
Reviewer
markj
Differential Revision
D36217: arm64 pmap: Simplify logic around pv_chunk sizes.
Parents
rGe7d02be19d40: protosw: refactor protosw and domain static declaration and load
Branches
Unknown
Tags
Unknown