HomeFreeBSD

amd64 pmap: More unification for psind = 1 vs 2 in pmap_enter_largepage().

Description

amd64 pmap: More unification for psind = 1 vs 2 in pmap_enter_largepage().

Move

pkru check
wait for page alloc
wire accounting update
asserting allowed updates for valid mappings

out of psind conditions.

Also add assert that psind references supported page size.
Remove not true comment.
Avoid uneccessary page table walks from top level.

Reviewed by: alc, markj (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D26513

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D26513: amd64 pmap: More unification for psind = 1 vs 2 in pmap_enter_largepage().
Parents
rS366029: Tweak ficl definition from r365724
Branches
Unknown
Tags
Unknown