19 #include <asm/pgtable.h>
20 #include <asm/pgalloc.h>
21 #include <asm/suspend.h>
35 static pmd_t *resume_one_md_table_init(
pgd_t *pgd)
72 static int resume_physical_mapping_init(
pgd_t *pgd_base)
81 pgd = pgd_base + pgd_idx;
85 pmd = resume_one_md_table_init(pgd);
92 for (pmd_idx = 0; pmd_idx <
PTRS_PER_PMD; pmd++, pmd_idx++) {
101 pte = resume_one_page_table_init(pmd);
106 for (; pte < max_pte; pte++, pfn++) {
118 static inline void resume_init_first_level_page_table(
pgd_t *pg_dir)
130 resume_init_first_level_page_table(resume_pg_dir);
131 error = resume_physical_mapping_init(resume_pg_dir);
149 return (pfn >= begin_pfn) && (pfn < end_pfn);