Page MenuHomeFreeBSD

Simplify arm64's pmap_bootstrap() a bit.
ClosedPublic

Authored by markj on Apr 24 2020, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 2:53 PM
Unknown Object (File)
Thu, Nov 20, 2:53 PM
Unknown Object (File)
Thu, Nov 20, 2:52 PM
Unknown Object (File)
Thu, Nov 20, 2:45 PM
Unknown Object (File)
Sun, Nov 2, 7:23 PM
Unknown Object (File)
Tue, Oct 28, 2:33 PM
Unknown Object (File)
Oct 17 2025, 1:15 PM
Unknown Object (File)
Oct 17 2025, 1:15 PM
Subscribers

Details

Summary

locore constructs an L2 page mapping the kernel and preloaded data
starting a KERNBASE (the same as VM_MIN_KERNEL_ADDRESS on arm64).
initarm() and pmap_bootstrap() use the preloaded metadata to
tell it where it can start allocating from.

pmap_bootstrap() currently iterates over the L2 page to find the last
valid entry, but doesn't do anything with the result. Remove the loop
and zap some now-unused local variables.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 6 2020, 3:01 PM
This revision was automatically updated to reflect the committed changes.