HomeFreeBSD

amd64: Eliminate a redundant test from pmap_enter_object()

Description

amd64: Eliminate a redundant test from pmap_enter_object()

The call to pmap_allow_2m_x_page() in pmap_enter_object() is redundant.
Specifically, even without the call to pmap_allow_2m_x_page() in
pmap_enter_object(), pmap_allow_2m_x_page() is eventually called by
pmap_enter_pde(), so the outcome will be the same. Essentially,
calling pmap_allow_2m_x_page() in pmap_enter_object() amounts to
"optimizing" for the unexpected case.

Reviewed by: kib

(cherry picked from commit b7de535288362b072cf2801007e4d7e0e903d467)

Details

Provenance
alcAuthored on Jul 24 2021, 3:50 AM
markjCommitted on Aug 31 2021, 7:09 PM
Parents
rGa5dd155bfb2d: arm64: Sync icache when creating executable superpage mappings
Branches
Unknown
Tags
Unknown