Update MIPS to use the 4-level pagetable code thereby getting rid of
[linux-2.6.git] / arch / mips / mm / c-r3k.c
index c659f99eb39aa1dfc187728d3432acf97cd521ee..03492a5c21f15c6bb9fb1dfda0b72503f360cf3a 100644 (file)
@@ -221,12 +221,14 @@ static inline unsigned long get_phys_page (unsigned long addr,
                                           struct mm_struct *mm)
 {
        pgd_t *pgd;
+       pud_t *pud;
        pmd_t *pmd;
        pte_t *pte;
        unsigned long physpage;
 
        pgd = pgd_offset(mm, addr);
-       pmd = pmd_offset(pgd, addr);
+       pud = pud_offset(pgd, addr);
+       pmd = pmd_offset(pud, addr);
        pte = pte_offset(pmd, addr);
 
        if ((physpage = pte_val(*pte)) & _PAGE_VALID)