aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r--arch/sh/mm/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c
index 432acd07e76a..761910d142f8 100644
--- a/arch/sh/mm/init.c
+++ b/arch/sh/mm/init.c
@@ -120,7 +120,13 @@ void __init page_table_range_init(unsigned long start, unsigned long end,
120 for ( ; (i < PTRS_PER_PGD) && (vaddr != end); pgd++, i++) { 120 for ( ; (i < PTRS_PER_PGD) && (vaddr != end); pgd++, i++) {
121 pud = (pud_t *)pgd; 121 pud = (pud_t *)pgd;
122 for ( ; (j < PTRS_PER_PUD) && (vaddr != end); pud++, j++) { 122 for ( ; (j < PTRS_PER_PUD) && (vaddr != end); pud++, j++) {
123#ifdef __PAGETABLE_PMD_FOLDED
123 pmd = (pmd_t *)pud; 124 pmd = (pmd_t *)pud;
125#else
126 pmd = (pmd_t *)alloc_bootmem_low_pages(PAGE_SIZE);
127 pud_populate(&init_mm, pud, pmd);
128 pmd += k;
129#endif
124 for (; (k < PTRS_PER_PMD) && (vaddr != end); pmd++, k++) { 130 for (; (k < PTRS_PER_PMD) && (vaddr != end); pmd++, k++) {
125 if (pmd_none(*pmd)) { 131 if (pmd_none(*pmd)) {
126 pte = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); 132 pte = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE);