Commit 2d495ebc55f0d5a7ac488716230d817d43818549
1 parent
b4e8a1813c
Exists in
master
and in
4 other branches
CRIS: Always dump registers for segfaulting process.
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
arch/cris/mm/fault.c
... | ... | @@ -12,6 +12,7 @@ |
12 | 12 | |
13 | 13 | extern int find_fixup_code(struct pt_regs *); |
14 | 14 | extern void die_if_kernel(const char *, struct pt_regs *, long); |
15 | +extern void show_registers(struct pt_regs *regs); | |
15 | 16 | |
16 | 17 | /* debug of low-level TLB reload */ |
17 | 18 | #undef DEBUG |
... | ... | @@ -195,6 +196,11 @@ |
195 | 196 | "address %08lx at pc %08lx\n", |
196 | 197 | tsk->comm, tsk->pid, |
197 | 198 | address, instruction_pointer(regs)); |
199 | + | |
200 | + /* With DPG on, we've already dumped registers above. */ | |
201 | + DPG(if (0)) | |
202 | + show_registers(regs); | |
203 | + | |
198 | 204 | #ifdef CONFIG_NO_SEGFAULT_TERMINATION |
199 | 205 | DECLARE_WAIT_QUEUE_HEAD(wq); |
200 | 206 | wait_event_interruptible(wq, 0 == 1); |