HomeFreeBSD

arm64 pmap: introduce PTE_TO_PHYS macro

Description

arm64 pmap: introduce PTE_TO_PHYS macro

Introduce macro for PTE_TO_PHYS, setting the groundwork for future
support of various Arm VMSA extensions.

For extensions such as 52-bit VA/PA (FEAT_LPA2), the representation of
an address between a PTE and PA are not equivalent. This macro will
allow converting between the different representations.

Currently going from PTE to PA is achieved by masking off the upper and
lower attributes. Retain this behaviour but replace all instances with
the new macro instead.

Reviewed by: alc, markj
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D39827

Details

Provenance
zachary.leaf_arm.comAuthored on Apr 24 2023, 12:51 PM
andrewCommitted on May 24 2023, 10:55 AM
Reviewer
alc
Differential Revision
D39827: arm64 pmap: introduce PTE_TO_PHYS macro
Parents
rG6e3a9d7f2c8d: ifconfig: introduce `ifconfig_context` to store current global state.
Branches
Unknown
Tags
Unknown