14 #include <asm/pgtable.h>
15 #include <asm/mmzone.h>
35 static pmd_t *resume_one_md_table_init(
pgd_t *pgd)
83 static int resume_physical_mapping_init(
pgd_t *pgd_base)
92 pgd = pgd_base + pgd_idx;
96 pmd = resume_one_md_table_init(pgd);
103 for (pmd_idx = 0; pmd_idx <
PTRS_PER_PMD; pmd++, pmd_idx++) {
117 pte = resume_one_page_table_init(pmd);
122 for (; pte < max_pte; pte++, pfn++) {
132 resume_map_numa_kva(pgd_base);
137 static inline void resume_init_first_level_page_table(
pgd_t *pg_dir)
139 #ifdef CONFIG_X86_PAE
157 resume_init_first_level_page_table(resume_pg_dir);
158 error = resume_physical_mapping_init(resume_pg_dir);
175 return (pfn >= nosave_begin_pfn) && (pfn < nosave_end_pfn);