HomeFreeBSD

riscv: handle kernel PTE edge-case in pmap_enter_l2()

Description

riscv: handle kernel PTE edge-case in pmap_enter_l2()

Page table pages are never freed from the kernel pmap, instead they are
zeroed when a range is unmapped. This allows future mappings to be
constructed more quickly. Detect this scenario in pmap_enter_l2(), so we
don't fail to create a superpage mapping when the 2MB range is actually
available.

Reviewed by: markj
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D36885

Details

Provenance
mhorneAuthored on Oct 5 2022, 4:14 PM
Reviewer
markj
Differential Revision
D36885: riscv: handle kernel PTE edge-case in pmap_enter_l2()
Parents
rG99fe523778af: riscv: add an assert to pmap_remove_pages()
Branches
Unknown
Tags
Unknown