]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64 pmap: More unification for psind = 1 vs 2 in pmap_enter_largepage().
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 22 Sep 2020 23:28:06 +0000 (23:28 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 22 Sep 2020 23:28:06 +0000 (23:28 +0000)
commitb82149116a2f14f45d3460553f8d514c99d985cc
treebea53de4b836eab8dbe6b474144e1734982a74ed
parent0ebbda971890c149c5028066fc5ed7ea72228d87
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
sys/amd64/amd64/pmap.c