diff options
author | Robin Getz <robin.getz@analog.com> | 2008-01-11 03:53:00 -0500 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2008-01-11 03:53:00 -0500 |
commit | aee3a29240ad167ad7875d859506d8bb90431c70 (patch) | |
tree | 2a93afa69d01dd1272b99026f6272e2dd7b1294b /arch/blackfin | |
parent | e31639540d2b1474766e95c1a7b1b698468ba092 (diff) |
[Blackfin] arch: print out list of modules if kernel is crashing and tell people if the kernel is tainted
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/traps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c index 5e840727a258..66b5f3e3ae2a 100644 --- a/arch/blackfin/kernel/traps.c +++ b/arch/blackfin/kernel/traps.c | |||
@@ -497,6 +497,7 @@ asmlinkage void trap_c(struct pt_regs *fp) | |||
497 | dump_bfin_trace_buffer(); | 497 | dump_bfin_trace_buffer(); |
498 | show_stack(current, &stack); | 498 | show_stack(current, &stack); |
499 | if (oops_in_progress) { | 499 | if (oops_in_progress) { |
500 | print_modules(); | ||
500 | #ifndef CONFIG_ACCESS_CHECK | 501 | #ifndef CONFIG_ACCESS_CHECK |
501 | printk(KERN_EMERG "Please turn on " | 502 | printk(KERN_EMERG "Please turn on " |
502 | "CONFIG_ACCESS_CHECK\n"); | 503 | "CONFIG_ACCESS_CHECK\n"); |
@@ -761,7 +762,7 @@ void show_regs(struct pt_regs *fp) | |||
761 | unsigned int i; | 762 | unsigned int i; |
762 | unsigned long flags; | 763 | unsigned long flags; |
763 | 764 | ||
764 | printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\n"); | 765 | printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted()); |
765 | printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n", | 766 | printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n", |
766 | (long)fp->seqstat, fp->ipend, fp->syscfg); | 767 | (long)fp->seqstat, fp->ipend, fp->syscfg); |
767 | printk(KERN_NOTICE " HWERRCAUSE: 0x%lx\n", | 768 | printk(KERN_NOTICE " HWERRCAUSE: 0x%lx\n", |