Page MenuHomeFreeBSD

arm64: simplify physmap usage in pmap_bootstrap()
ClosedPublic

Authored by mhorne on Jun 27 2024, 6:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 23, 8:59 AM
Unknown Object (File)
Nov 16 2025, 10:36 PM
Unknown Object (File)
Nov 13 2025, 2:34 AM
Unknown Object (File)
Nov 9 2025, 11:09 PM
Unknown Object (File)
Oct 29 2025, 11:04 AM
Unknown Object (File)
Oct 29 2025, 11:03 AM
Unknown Object (File)
Oct 29 2025, 11:03 AM
Unknown Object (File)
Oct 29 2025, 11:03 AM
Subscribers

Details

Summary

The subr_physmem.c facility provides guarantees about non-empty ranges.
Push this into pmap_bootstrap_dmap() and simplify; the lowest physical
memory range is always in the first item.

While here, use the raw value of physmap_idx.

No functional change intended.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58375
Build 55263: arc lint + arc unit

Event Timeline

sys/arm64/arm64/pmap.c
1218

@markj your recent change d03e1ffbea6 coincided with mine, but I believe there is a minor bug here.

sys/arm64/arm64/pmap.c
1218

Sigh, I missed this. :(

Would you commit this part on its own, with a "Fixes:" tag? Please consider it reviewed by me. If you don't have time, I can take care of it later today.

mhorne marked an inline comment as done.

Rebase after 32d2a1de3d64.

This revision is now accepted and ready to land.Jun 30 2024, 3:46 PM