Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27125
b: refs/heads/master
c: cac4bcb
h: refs/heads/master
i:
  27123: 3271c25
v: v3
  • Loading branch information
Ralf Baechle committed Jun 5, 2006
1 parent eea6b33 commit 9a67a5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 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: 722ace9dfb73a62bf78c2db619795cfc128fef5a
refs/heads/master: cac4bcbce0e800f2219a27b66aaeb4a33f2e3dbc
19 changes: 17 additions & 2 deletions trunk/arch/mips/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,15 +819,30 @@ asmlinkage void do_watch(struct pt_regs *regs)

asmlinkage void do_mcheck(struct pt_regs *regs)
{
const int field = 2 * sizeof(unsigned long);
int multi_match = regs->cp0_status & ST0_TS;

show_regs(regs);
dump_tlb_all();

if (multi_match) {
printk("Index : %0x\n", read_c0_index());
printk("Pagemask: %0x\n", read_c0_pagemask());
printk("EntryHi : %0*lx\n", field, read_c0_entryhi());
printk("EntryLo0: %0*lx\n", field, read_c0_entrylo0());
printk("EntryLo1: %0*lx\n", field, read_c0_entrylo1());
printk("\n");
dump_tlb_all();
}

show_code((unsigned int *) regs->cp0_epc);

/*
* Some chips may have other causes of machine check (e.g. SB1
* graduation timer)
*/
panic("Caught Machine Check exception - %scaused by multiple "
"matching entries in the TLB.",
(regs->cp0_status & ST0_TS) ? "" : "not ");
(multi_match) ? "" : "not ");
}

asmlinkage void do_mt(struct pt_regs *regs)
Expand Down

0 comments on commit 9a67a5d

Please sign in to comment.