diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-02-10 07:19:59 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:31 -0400 |
commit | c6e8b587718c486b55c2ebecc6de231a30beba35 (patch) | |
tree | 7c6162d449c69fb6425bd27ba341e2d874fb0a1b /arch/mips/mm/tlb-r4k.c | |
parent | 57f0060b8a2bb2a70a4cce1a37d5e0158cea92a6 (diff) |
Update MIPS to use the 4-level pagetable code thereby getting rid of
the compacrapability headers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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 | ||