Page MenuHomeFreeBSD

Handle non-page aligned/sized memory in physmem
ClosedPublic

Authored by andrew on Mar 28 2022, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 26, 6:32 AM
Unknown Object (File)
Sat, Oct 26, 6:32 AM
Unknown Object (File)
Sat, Oct 26, 6:18 AM
Unknown Object (File)
Oct 20 2024, 7:30 AM
Unknown Object (File)
Sep 18 2024, 8:28 PM
Unknown Object (File)
Sep 18 2024, 6:15 AM
Unknown Object (File)
Sep 17 2024, 6:03 PM
Unknown Object (File)
Sep 17 2024, 4:33 AM
Subscribers

Details

Summary

In some configurations the firmware may pass memory regions that are
not page sized or aligned, e.g. when using 16k pages on arm64. If this
is the case we will calculate many small regions because the alignment
is applied before being inserted. As we round the start up and end down
this will leave a 1 page hole between what should have been a single
region.

Fix by keeping the original alignment until we are just about to insert
the region into the avail array.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44902
Build 41790: arc lint + arc unit