Change architecture-specific code to use iterators rather than tailq pointers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/amd64/amd64/pmap.c | ||
---|---|---|
7711 | That won't set pages.index to m_start->pindex, so iter_step() and iter_jump() will be adding to an incorrect or uninitialized value to update the index value. | |
7944 | Because line 7940 is The latter would be equivalent to "p = TAILQ_NEXT(p, listq). The former gets the page with the next address, and gets NULL if there is no such page. |
sys/amd64/amd64/pmap.c | ||
---|---|---|
7944 | Contiguity in the pindex space doesn't imply contiguity in the physical address space. The vm_object_populate() call ensures that a page is resident at all pindices in the range, so the old code could have equivalently used vm_page_next(). |