HomeFreeBSD

riscv: Add a leaf PTP when pmap_enter(psind=1) creates a wired mapping

Description

riscv: Add a leaf PTP when pmap_enter(psind=1) creates a wired mapping

Let pmap_enter_l2() create wired mappings. In particular, allocate a
leaf PTP for use during demotion. This is the last pmap which requires
such a change ahead of reverting commit 64087fd7f372.

Reviewed by: markj
Sponsored by: Google, Inc. (GSoC 2023)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D41633

(cherry picked from commit d0941ed9b5c39d92d0aa75bc253506cb59a2e9a1)

Details

Provenance
bnovkovAuthored on Nov 8 2023, 10:20 AM
markjCommitted on Dec 2 2023, 9:54 PM
Reviewer
markj
Differential Revision
D41633: riscv pmap: allocate leaf page table page for wired userspace superpages
Parents
rG04e48937f1bf: riscv: Update a variable name to match a comment
Branches
Unknown
Tags
Unknown