Commit aee3a292 authored by Robin Getz's avatar Robin Getz Committed by Bryan Wu

[Blackfin] arch: print out list of modules if kernel is crashing and tell...

[Blackfin] arch: print out list of modules if kernel is crashing and tell people if the kernel is tainted 
Signed-off-by: default avatarRobin Getz <robin.getz@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent e3163954
...@@ -497,6 +497,7 @@ asmlinkage void trap_c(struct pt_regs *fp) ...@@ -497,6 +497,7 @@ asmlinkage void trap_c(struct pt_regs *fp)
dump_bfin_trace_buffer(); dump_bfin_trace_buffer();
show_stack(current, &stack); show_stack(current, &stack);
if (oops_in_progress) { if (oops_in_progress) {
print_modules();
#ifndef CONFIG_ACCESS_CHECK #ifndef CONFIG_ACCESS_CHECK
printk(KERN_EMERG "Please turn on " printk(KERN_EMERG "Please turn on "
"CONFIG_ACCESS_CHECK\n"); "CONFIG_ACCESS_CHECK\n");
...@@ -761,7 +762,7 @@ void show_regs(struct pt_regs *fp) ...@@ -761,7 +762,7 @@ void show_regs(struct pt_regs *fp)
unsigned int i; unsigned int i;
unsigned long flags; unsigned long flags;
printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\n"); printk(KERN_NOTICE "\n" KERN_NOTICE "SEQUENCER STATUS:\t\t%s\n", print_tainted());
printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n", printk(KERN_NOTICE " SEQSTAT: %08lx IPEND: %04lx SYSCFG: %04lx\n",
(long)fp->seqstat, fp->ipend, fp->syscfg); (long)fp->seqstat, fp->ipend, fp->syscfg);
printk(KERN_NOTICE " HWERRCAUSE: 0x%lx\n", printk(KERN_NOTICE " HWERRCAUSE: 0x%lx\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment