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-andes.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-andes.c')
-rw-r--r-- | arch/mips/mm/tlb-andes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/mm/tlb-andes.c b/arch/mips/mm/tlb-andes.c index 167e08e9661a..3f422a849c41 100644 --- a/arch/mips/mm/tlb-andes.c +++ b/arch/mips/mm/tlb-andes.c | |||
@@ -195,6 +195,7 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte) | |||
195 | { | 195 | { |
196 | unsigned long flags; | 196 | unsigned long flags; |
197 | pgd_t *pgdp; | 197 | pgd_t *pgdp; |
198 | pud_t *pudp; | ||
198 | pmd_t *pmdp; | 199 | pmd_t *pmdp; |
199 | pte_t *ptep; | 200 | pte_t *ptep; |
200 | int idx, pid; | 201 | int idx, pid; |
@@ -220,7 +221,8 @@ void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte) | |||
220 | write_c0_entryhi(address | (pid)); | 221 | write_c0_entryhi(address | (pid)); |
221 | pgdp = pgd_offset(vma->vm_mm, address); | 222 | pgdp = pgd_offset(vma->vm_mm, address); |
222 | tlb_probe(); | 223 | tlb_probe(); |
223 | pmdp = pmd_offset(pgdp, address); | 224 | pudp = pud_offset(pgdp, address); |
225 | pmdp = pmd_offset(pudp, address); | ||
224 | idx = read_c0_index(); | 226 | idx = read_c0_index(); |
225 | ptep = pte_offset_map(pmdp, address); | 227 | ptep = pte_offset_map(pmdp, address); |
226 | write_c0_entrylo0(pte_val(*ptep++) >> 6); | 228 | write_c0_entrylo0(pte_val(*ptep++) >> 6); |