aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r--arch/mips/mm/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index 15cae0f11880..842a49ef9909 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -243,7 +243,8 @@ void __init fixrange_init(unsigned long start, unsigned long end,
243 pmd = (pmd_t *)pud; 243 pmd = (pmd_t *)pud;
244 for (; (k < PTRS_PER_PMD) && (vaddr < end); pmd++, k++) { 244 for (; (k < PTRS_PER_PMD) && (vaddr < end); pmd++, k++) {
245 if (pmd_none(*pmd)) { 245 if (pmd_none(*pmd)) {
246 pte = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); 246 pte = (pte_t *) memblock_alloc_low(PAGE_SIZE,
247 PAGE_SIZE);
247 set_pmd(pmd, __pmd((unsigned long)pte)); 248 set_pmd(pmd, __pmd((unsigned long)pte));
248 BUG_ON(pte != pte_offset_kernel(pmd, 0)); 249 BUG_ON(pte != pte_offset_kernel(pmd, 0));
249 } 250 }