summaryrefslogtreecommitdiffstats
path: root/arch/mips64/mm/fault.c
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-05-03 20:09:47 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-05-03 20:09:47 +0000
commite20d7226e0995c268ca3250acd6d1f63c84f7ea7 (patch)
tree8c4904b7debf80497384ddaf4f715350a39a05fd /arch/mips64/mm/fault.c
parentb664d53ebd9adfbfe2e6e10b2c21b58900dcca16 (diff)
More low level debugging stuff that can be turned on with DEBUG_MIPS64.
Diffstat (limited to 'arch/mips64/mm/fault.c')
-rw-r--r--arch/mips64/mm/fault.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips64/mm/fault.c b/arch/mips64/mm/fault.c
index fcddf6fa5..f0e60a294 100644
--- a/arch/mips64/mm/fault.c
+++ b/arch/mips64/mm/fault.c
@@ -44,6 +44,19 @@ dodebug(abi64_no_regargs, struct pt_regs regs)
printk("Got syscall %d, cpu %d proc %s:%d epc 0x%lx\n", regs.regs[2], smp_processor_id(), current->comm, current->pid, regs.cp0_epc);
}
+asmlinkage void
+dodebug2(abi64_no_regargs, struct pt_regs regs)
+{
+ unsigned long retaddr;
+
+ __asm__ __volatile__(
+ ".set noreorder\n\t"
+ "add %0,$0,$31\n\t"
+ ".set reorder"
+ : "=r" (retaddr));
+ printk("Got exception 0x%lx at 0x%lx\n", retaddr, regs.cp0_epc);
+}
+
/*
* This routine handles page faults. It determines the address,
* and the problem, and then passes it off to one of the appropriate