diff options
Diffstat (limited to 'arch/mips/mm/tlb-r4k.c')
-rw-r--r-- | arch/mips/mm/tlb-r4k.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index 09249a756016..08702202758d 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c | |||
@@ -227,6 +227,7 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte) | |||
227 | { | 227 | { |
228 | unsigned long flags; | 228 | unsigned long flags; |
229 | pgd_t *pgdp; | 229 | pgd_t *pgdp; |
230 | pud_t *pudp; | ||
230 | pmd_t *pmdp; | 231 | pmd_t *pmdp; |
231 | pte_t *ptep; | 232 | pte_t *ptep; |
232 | int idx, pid; | 233 | int idx, pid; |
@@ -246,7 +247,8 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte) | |||
246 | mtc0_tlbw_hazard(); | 247 | mtc0_tlbw_hazard(); |
247 | tlb_probe(); | 248 | tlb_probe(); |
248 | BARRIER; | 249 | BARRIER; |
249 | pmdp = pmd_offset(pgdp, address); | 250 | pudp = pud_offset(pgdp, address); |
251 | pmdp = pmd_offset(pudp, address); | ||
250 | idx = read_c0_index(); | 252 | idx = read_c0_index(); |
251 | ptep = pte_offset_map(pmdp, address); | 253 | ptep = pte_offset_map(pmdp, address); |
252 | 254 | ||