HomeFreeBSD

Add new helper routines for arm static device mapping. The new code
rS257673Unpublished

Unpublished Commit · Learn More

No further details are available.

Description

Add new helper routines for arm static device mapping. The new code
allocates kva space from the top down for the device mappings and builds
entries in an internal table which is automatically used later by
arm_devmap_bootstrap(). The platform code just calls the new
arm_devmap_add_entry() function as many times as it needs to (up to 32
entries allowed; most platforms use 2 or 3 at most).

There is also a new arm_devmap_lastaddr() function that returns the lowest
kva address allocated; this can be used to implement initarm_lastaddr()
which is used to initialize vm_max_kernel_address.

The new code is based on a similar concept developed for the imx family
SoCs recently. They will soon be converted to use this new common code.

Details

Provenance
ianAuthored on
Parents
rS257672: Make PTE_DEVICE a synonym for PTE_NOCACHE on armv4, to make it easier to
Branches
Unknown
Tags
Unknown

Event Timeline