Add description of how the page table pages are numbered by pmap_allocpte().
Details
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 31988
Event Timeline
sys/amd64/amd64/pmap.c | ||
---|---|---|
3811 | It should be "the PTE". "the page" sounds like there is a unique page, but really we are talking about each PTP in the hierarchy. So maybe: "The page indices of the page table pages encountered while translating virtual address va are defined as follows:" | |
3813 | Should it be, "for the page table page (last level)"? For the other entries, we are missing "the" as well. | |
3826 | Maybe clarify also that the PML4 page always has pindex 0? |
sys/amd64/amd64/pmap.c | ||
---|---|---|
3826 | PML4 page does not have index for the purpose of _pmap_allocpte() which uses this numbering. The PML4 page is statically allocated at the pinit() time. In fact, the pteindex 0 is assigned to the pte which maps at zero. |
sys/amd64/amd64/pmap.c | ||
---|---|---|
3826 | Indeed, I just thought it would be useful to clarify this fact for completeness. |
sys/amd64/amd64/pmap.c | ||
---|---|---|
3818 | There should be a comma after "page indices", otherwise it is not really clear what "i.e." refers to. |