]> git.hungrycats.org Git - linux/commitdiff
[PATCH] add thread_info to oops output
authorAnton Blanchard <anton@samba.org>
Fri, 13 Feb 2004 23:29:59 +0000 (15:29 -0800)
committerAnton Blanchard <anton@samba.org>
Fri, 13 Feb 2004 23:29:59 +0000 (15:29 -0800)
- Add thread_info to pointer, its a useful piece of information.
- Do the kallsyms lookup on the link register
- Remove extra newline on one call to die()

arch/ppc64/kernel/process.c
arch/ppc64/kernel/traps.c

index 320b0b2e7e88bd29a267e4052b8a2751236708eb..ffcfbd8e96feced96ba02529dfcd5bd754dcb9da 100644 (file)
@@ -194,8 +194,8 @@ void show_regs(struct pt_regs * regs)
               regs->msr&MSR_DR ? 1 : 0);
        if (regs->trap == 0x300 || regs->trap == 0x380 || regs->trap == 0x600)
                printk("DAR: %016lx, DSISR: %016lx\n", regs->dar, regs->dsisr);
-       printk("TASK = %p[%d] '%s' ",
-              current, current->pid, current->comm);
+       printk("TASK: %p[%d] '%s' THREAD: %p",
+              current, current->pid, current->comm, current->thread_info);
 
 #ifdef CONFIG_SMP
        printk(" CPU: %d", smp_processor_id());
@@ -217,6 +217,8 @@ void show_regs(struct pt_regs * regs)
         */
        printk("NIP [%016lx] ", regs->nip);
        print_symbol("%s\n", regs->nip);
+       printk("LR [%016lx] ", regs->link);
+       print_symbol("%s\n", regs->link);
        show_stack(current, (unsigned long *)regs->gpr[1]);
 }
 
index bcd9c9cc1ceeb0be7e8a52bdf28c1005107d3d82..e11e2c52c4a7b8651e68f218cb8cf67f52b36d61 100644 (file)
@@ -92,7 +92,7 @@ _exception(int signr, siginfo_t *info, struct pt_regs *regs)
                if (debugger)
                        debugger(regs);
 #endif
-               die("Exception in kernel mode\n", regs, signr);
+               die("Exception in kernel mode", regs, signr);
        }
 
        force_sig_info(signr, info, current);