Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19918
b: refs/heads/master
c: d1e30a6
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Feb 7, 2006
1 parent f79c306 commit 03fa946
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5665a0ac59a656b94cbf3c4642b32024a6c1cf75
refs/heads/master: d1e30a6347630ca7eeee2f46f826f05bbe80bb25
33 changes: 15 additions & 18 deletions trunk/arch/mips/lib-32/dump_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,29 +158,26 @@ void dump_list_process(struct task_struct *t, void *address)
printk("task->mm == %8p\n", t->mm);
//printk("tasks->mm.pgd == %08x\n", (unsigned int) t->mm->pgd);

if (addr > KSEG0)
if (addr > KSEG0) {
page_dir = pgd_offset_k(0);
else if (t->mm) {
page_dir = pgd_offset(t->mm, 0);
printk("page_dir == %08x\n", (unsigned int) page_dir);
} else
printk("Current thread has no mm\n");

if (addr > KSEG0)
pgd = pgd_offset_k(addr);
else if (t->mm) {
} else if (t->mm) {
page_dir = pgd_offset(t->mm, 0);
pgd = pgd_offset(t->mm, addr);
printk("pgd == %08x, ", (unsigned int) pgd);
pud = pud_offset(pgd, addr);
printk("pud == %08x, ", (unsigned int) pud);
} else {
printk("Current thread has no mm\n");
return;
}
printk("page_dir == %08x\n", (unsigned int) page_dir);
printk("pgd == %08x, ", (unsigned int) pgd);
pud = pud_offset(pgd, addr);
printk("pud == %08x, ", (unsigned int) pud);

pmd = pmd_offset(pud, addr);
printk("pmd == %08x, ", (unsigned int) pmd);
pmd = pmd_offset(pud, addr);
printk("pmd == %08x, ", (unsigned int) pmd);

pte = pte_offset(pmd, addr);
printk("pte == %08x, ", (unsigned int) pte);
} else
printk("Current thread has no mm\n");
pte = pte_offset(pmd, addr);
printk("pte == %08x, ", (unsigned int) pte);

page = *pte;
#ifdef CONFIG_64BIT_PHYS_ADDR
Expand Down

0 comments on commit 03fa946

Please sign in to comment.