Page MenuHomeFreeBSD

Simplify arm64's pmap_bootstrap() a bit.
ClosedPublic

Authored by markj on Apr 24 2020, 6:35 PM.
Tags
None
Referenced Files
F95089014: D24559.id70953.diff
Thu, Sep 19, 7:19 AM
F94899916: D24559.diff
Wed, Sep 18, 4:35 PM
F94822813: D24559.id71461.diff
Wed, Sep 18, 10:09 AM
Unknown Object (File)
Tue, Sep 17, 6:40 PM
Unknown Object (File)
Sun, Sep 1, 2:34 AM
Unknown Object (File)
Sun, Sep 1, 2:33 AM
Unknown Object (File)
Sun, Sep 1, 2:32 AM
Unknown Object (File)
Sun, Sep 1, 2:32 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30707
Build 28437: arc lint + arc unit

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.