ernel((pmd_t *)(pmd + pmd_idx), pmd_cur);
? ? ? ? ? ? ? ? ? ? pte1= pmd_val(*((pmd_t *)(pmd + pmd_idx)));
? ? ? ? ? ? ? ? ? ? if((((unsignedlong)pte1)>>7)&0x1)
? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? //打印2M页
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? for(pte_ofs = 0; pte_ofs < PTRS_PER_PTE; pte_ofs++) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? unsignedlong pg_cur = pmd_cur + pte_ofs * PAGE_SIZE;
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(pte_present(pte[pte_ofs]))
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //打印4kb页
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? }? ? ?
? ? ? }? ? ? ?
}
因为打印的内容很多,用seq文件实现比较方便。