[PATCH 3/3] MIPS: kernel: traps: Dump the PageGrain and Wired registers on MC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



They can be useful to determine how the MMU is configured on a MC
exception.

Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx>
---
 arch/mips/kernel/traps.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 32feb481a67a..a8f7cee53aae 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1385,6 +1385,8 @@ asmlinkage void do_mcheck(struct pt_regs *regs)
 		pr_info("EntryHi : %0*lx\n", field, read_c0_entryhi());
 		pr_info("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
 		pr_info("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
+		pr_info("Wired   : %0x\n", read_c0_wired());
+		pr_info("Pagegrain: %0x\n", read_c0_pagegrain());
 		if (cpu_has_htw) {
 			pr_info("PWField : %0*lx\n", field, read_c0_pwfield());
 			pr_info("PWSize  : %0*lx\n", field, read_c0_pwsize());
-- 
2.1.3






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux