For the following code, I assume it should be the page diretory entry
instead of the page group directory, just a matter of naming, right?
(Line 154)
Yes :). It is the page global directory entry. Later in the code, page middle directory entry is also termed as 'pmd'.
from kernel 2.6.17 (arch/i386/mm/init.c)
145 static void __init kernel_physical_mapping_init(pgd_t *pgd_base)
146 {
147 unsigned long pfn;
148 pgd_t *pgd;
149 pmd_t *pmd;
150 pte_t *pte;
151 int pgd_idx, pmd_idx, pte_ofs;
152
153 pgd_idx = pgd_index(PAGE_OFFSET);
154 pgd = pgd_base + pgd_idx;
155 pfn = 0;
156
157 for (; pgd_idx < PTRS_PER_PGD; pgd++, pgd_idx++) {
158 pmd = one_md_table_init(pgd);
159 if (pfn >= max_low_pfn)
160 continue;
Thanks,
Neo
--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ