summaryrefslogtreecommitdiffstats
path: root/arch/cris/mm
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 17:48:40 +0200
committerJesper Nilsson <jesper.nilsson@axis.com>2010-08-04 18:28:49 +0200
commit2d495ebc55f0d5a7ac488716230d817d43818549 (patch)
tree3f3c8f8f03f32453b82dcce4bd9b75f8567cf914 /arch/cris/mm
parentb4e8a1813c7d65a7c28a3536da08444c21f2c37b (diff)
downloadop-kernel-dev-2d495ebc55f0d5a7ac488716230d817d43818549.zip
op-kernel-dev-2d495ebc55f0d5a7ac488716230d817d43818549.tar.gz
CRIS: Always dump registers for segfaulting process.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/mm')
-rw-r--r--arch/cris/mm/fault.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c
index 7705cd7..9dcac8e 100644
--- a/arch/cris/mm/fault.c
+++ b/arch/cris/mm/fault.c
@@ -12,6 +12,7 @@
extern int find_fixup_code(struct pt_regs *);
extern void die_if_kernel(const char *, struct pt_regs *, long);
+extern void show_registers(struct pt_regs *regs);
/* debug of low-level TLB reload */
#undef DEBUG
@@ -195,6 +196,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
"address %08lx at pc %08lx\n",
tsk->comm, tsk->pid,
address, instruction_pointer(regs));
+
+ /* With DPG on, we've already dumped registers above. */
+ DPG(if (0))
+ show_registers(regs);
+
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
DECLARE_WAIT_QUEUE_HEAD(wq);
wait_event_interruptible(wq, 0 == 1);
OpenPOWER on IntegriCloud