mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
Reindent dump_tlb.c.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
3fd5646cac
commit
d2f755e04f
1 changed files with 49 additions and 34 deletions
|
@ -20,16 +20,25 @@
|
||||||
static inline const char *msk2str(unsigned int mask)
|
static inline const char *msk2str(unsigned int mask)
|
||||||
{
|
{
|
||||||
switch (mask) {
|
switch (mask) {
|
||||||
case PM_4K: return "4kb";
|
case PM_4K:
|
||||||
case PM_16K: return "16kb";
|
return "4kb";
|
||||||
case PM_64K: return "64kb";
|
case PM_16K:
|
||||||
case PM_256K: return "256kb";
|
return "16kb";
|
||||||
|
case PM_64K:
|
||||||
|
return "64kb";
|
||||||
|
case PM_256K:
|
||||||
|
return "256kb";
|
||||||
#ifndef CONFIG_CPU_VR41XX
|
#ifndef CONFIG_CPU_VR41XX
|
||||||
case PM_1M: return "1Mb";
|
case PM_1M:
|
||||||
case PM_4M: return "4Mb";
|
return "1Mb";
|
||||||
case PM_16M: return "16Mb";
|
case PM_4M:
|
||||||
case PM_64M: return "64Mb";
|
return "4Mb";
|
||||||
case PM_256M: return "256Mb";
|
case PM_16M:
|
||||||
|
return "16Mb";
|
||||||
|
case PM_64M:
|
||||||
|
return "64Mb";
|
||||||
|
case PM_256M:
|
||||||
|
return "256Mb";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,13 +87,11 @@ void dump_tlb(int first, int last)
|
||||||
printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
|
printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
|
||||||
(entrylo0 << 6) & PAGE_MASK, c0,
|
(entrylo0 << 6) & PAGE_MASK, c0,
|
||||||
(entrylo0 & 4) ? 1 : 0,
|
(entrylo0 & 4) ? 1 : 0,
|
||||||
(entrylo0 & 2) ? 1 : 0,
|
(entrylo0 & 2) ? 1 : 0, (entrylo0 & 1));
|
||||||
(entrylo0 & 1));
|
|
||||||
printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
|
printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
|
||||||
(entrylo1 << 6) & PAGE_MASK, c1,
|
(entrylo1 << 6) & PAGE_MASK, c1,
|
||||||
(entrylo1 & 4) ? 1 : 0,
|
(entrylo1 & 4) ? 1 : 0,
|
||||||
(entrylo1 & 2) ? 1 : 0,
|
(entrylo1 & 2) ? 1 : 0, (entrylo1 & 1));
|
||||||
(entrylo1 & 1));
|
|
||||||
printk("\n");
|
printk("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -180,14 +187,22 @@ void dump_list_process(struct task_struct *t, void *address)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
val = pte_val(page);
|
val = pte_val(page);
|
||||||
if (val & _PAGE_PRESENT) printk("present ");
|
if (val & _PAGE_PRESENT)
|
||||||
if (val & _PAGE_READ) printk("read ");
|
printk("present ");
|
||||||
if (val & _PAGE_WRITE) printk("write ");
|
if (val & _PAGE_READ)
|
||||||
if (val & _PAGE_ACCESSED) printk("accessed ");
|
printk("read ");
|
||||||
if (val & _PAGE_MODIFIED) printk("modified ");
|
if (val & _PAGE_WRITE)
|
||||||
if (val & _PAGE_R4KBUG) printk("r4kbug ");
|
printk("write ");
|
||||||
if (val & _PAGE_GLOBAL) printk("global ");
|
if (val & _PAGE_ACCESSED)
|
||||||
if (val & _PAGE_VALID) printk("valid ");
|
printk("accessed ");
|
||||||
|
if (val & _PAGE_MODIFIED)
|
||||||
|
printk("modified ");
|
||||||
|
if (val & _PAGE_R4KBUG)
|
||||||
|
printk("r4kbug ");
|
||||||
|
if (val & _PAGE_GLOBAL)
|
||||||
|
printk("global ");
|
||||||
|
if (val & _PAGE_VALID)
|
||||||
|
printk("valid ");
|
||||||
printk("\n");
|
printk("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue