diff options
Diffstat (limited to 'arch/mips/lib-32/dump_tlb.c')
-rw-r--r-- | arch/mips/lib-32/dump_tlb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/mips/lib-32/dump_tlb.c b/arch/mips/lib-32/dump_tlb.c index 019ac8f005d7..f6d134feb12a 100644 --- a/arch/mips/lib-32/dump_tlb.c +++ b/arch/mips/lib-32/dump_tlb.c | |||
@@ -139,6 +139,7 @@ void dump_tlb_nonwired(void) | |||
139 | void dump_list_process(struct task_struct *t, void *address) | 139 | void dump_list_process(struct task_struct *t, void *address) |
140 | { | 140 | { |
141 | pgd_t *page_dir, *pgd; | 141 | pgd_t *page_dir, *pgd; |
142 | pud_t *pud; | ||
142 | pmd_t *pmd; | 143 | pmd_t *pmd; |
143 | pte_t *pte, page; | 144 | pte_t *pte, page; |
144 | unsigned long addr, val; | 145 | unsigned long addr, val; |
@@ -162,7 +163,10 @@ void dump_list_process(struct task_struct *t, void *address) | |||
162 | pgd = pgd_offset(t->mm, addr); | 163 | pgd = pgd_offset(t->mm, addr); |
163 | printk("pgd == %08x, ", (unsigned int) pgd); | 164 | printk("pgd == %08x, ", (unsigned int) pgd); |
164 | 165 | ||
165 | pmd = pmd_offset(pgd, addr); | 166 | pud = pud_offset(pgd, addr); |
167 | printk("pud == %08x, ", (unsigned int) pud); | ||
168 | |||
169 | pmd = pmd_offset(pud, addr); | ||
166 | printk("pmd == %08x, ", (unsigned int) pmd); | 170 | printk("pmd == %08x, ", (unsigned int) pmd); |
167 | 171 | ||
168 | pte = pte_offset(pmd, addr); | 172 | pte = pte_offset(pmd, addr); |
@@ -195,13 +199,15 @@ void dump_list_current(void *address) | |||
195 | unsigned int vtop(void *address) | 199 | unsigned int vtop(void *address) |
196 | { | 200 | { |
197 | pgd_t *pgd; | 201 | pgd_t *pgd; |
202 | pud_t *pud; | ||
198 | pmd_t *pmd; | 203 | pmd_t *pmd; |
199 | pte_t *pte; | 204 | pte_t *pte; |
200 | unsigned int addr, paddr; | 205 | unsigned int addr, paddr; |
201 | 206 | ||
202 | addr = (unsigned long) address; | 207 | addr = (unsigned long) address; |
203 | pgd = pgd_offset(current->mm, addr); | 208 | pgd = pgd_offset(current->mm, addr); |
204 | pmd = pmd_offset(pgd, addr); | 209 | pud = pud_offset(pgd, addr); |
210 | pmd = pmd_offset(pud, addr); | ||
205 | pte = pte_offset(pmd, addr); | 211 | pte = pte_offset(pmd, addr); |
206 | paddr = (KSEG1 | (unsigned int) pte_val(*pte)) & PAGE_MASK; | 212 | paddr = (KSEG1 | (unsigned int) pte_val(*pte)) & PAGE_MASK; |
207 | paddr |= (addr & ~PAGE_MASK); | 213 | paddr |= (addr & ~PAGE_MASK); |