diff options
Diffstat (limited to 'arch/mips/mm/c-r3k.c')
-rw-r--r-- | arch/mips/mm/c-r3k.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/mm/c-r3k.c b/arch/mips/mm/c-r3k.c index c659f99eb39a..27f4fa25e8c9 100644 --- a/arch/mips/mm/c-r3k.c +++ b/arch/mips/mm/c-r3k.c | |||
@@ -221,12 +221,14 @@ static inline unsigned long get_phys_page (unsigned long addr, | |||
221 | struct mm_struct *mm) | 221 | struct mm_struct *mm) |
222 | { | 222 | { |
223 | pgd_t *pgd; | 223 | pgd_t *pgd; |
224 | pud_t *pud; | ||
224 | pmd_t *pmd; | 225 | pmd_t *pmd; |
225 | pte_t *pte; | 226 | pte_t *pte; |
226 | unsigned long physpage; | 227 | unsigned long physpage; |
227 | 228 | ||
228 | pgd = pgd_offset(mm, addr); | 229 | pgd = pgd_offset(mm, addr); |
229 | pmd = pmd_offset(pgd, addr); | 230 | pud = pud_offset(pgd, addr); |
231 | pmd = pmd_offset(pud, addr); | ||
230 | pte = pte_offset(pmd, addr); | 232 | pte = pte_offset(pmd, addr); |
231 | 233 | ||
232 | if ((physpage = pte_val(*pte)) & _PAGE_VALID) | 234 | if ((physpage = pte_val(*pte)) & _PAGE_VALID) |
@@ -317,7 +319,7 @@ static void r3k_dma_cache_wback_inv(unsigned long start, unsigned long size) | |||
317 | r3k_flush_dcache_range(start, start + size); | 319 | r3k_flush_dcache_range(start, start + size); |
318 | } | 320 | } |
319 | 321 | ||
320 | void __init ld_mmu_r23000(void) | 322 | void __init r3k_cache_init(void) |
321 | { | 323 | { |
322 | extern void build_clear_page(void); | 324 | extern void build_clear_page(void); |
323 | extern void build_copy_page(void); | 325 | extern void build_copy_page(void); |