Since physmap_idx points to the next slot, we should make sure both 'i'
and 'insert_idx' are less than physmap_idx, but never equal to it.
Also allow physmap_idx to reach PHYS_AVAIL_ENTRIES so the last slot can
be populated.
Differential D51173
amd64: fix physmap entry addition logic Authored by vexeduxr on Jul 5 2025, 8:43 PM. Tags None Referenced Files
Subscribers
Details
Since physmap_idx points to the next slot, we should make sure both 'i' Also allow physmap_idx to reach PHYS_AVAIL_ENTRIES so the last slot can
Diff Detail
Event Timeline
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||