HomeFreeBSD

amd64 pmap: simplify recent changes to pmap_enter_pde()

Description

amd64 pmap: simplify recent changes to pmap_enter_pde()

When pmap_enter_pde() removes an existing 2MB page mapping within the
kernel address space, do not remap the kernel page table page since it
will shortly be unmapped. Simply zero it.

Eliminate an unnecessary conditional refcount decrement on what must be
a kernel page table page. (We only utilize this refcount on user-space
page table pages.)

Convert an assertion from a panic to a KASSERT.

(cherry picked from commit b87aa791533fd3fc8096faa837264761ed7f4a8c)

Details

Provenance
alcAuthored on Jul 7 2025, 8:29 PM
Parents
rG9810fb151938: amd64 pmap: convert panics to KASSERTs
Branches
Unknown
Tags
Unknown