[ PATCH ] Alpha print the symbol of pc and ra during Oops

From: Aneesh Kumar
Date: Sat Jul 31 2004 - 07:39:57 EST


Hi,

The below patch add the symbol information of the pc and ra to the
Oops message.

-aneesh
--- traps.c 2004-07-31 18:02:39.000000000 +0530
+++ /tmp/traps.c 2004-07-31 18:04:19.000000000 +0530
@@ -63,10 +63,12 @@
void
dik_show_regs(struct pt_regs *regs, unsigned long *r9_15)
{
printk("pc = [<%016lx>] ra = [<%016lx>] ps = %04lx %s\n",
regs->pc, regs->r26, regs->ps, print_tainted());
+ print_symbol("pc is at %s\n", regs->pc);
+ print_symbol("ra is at %s\n", regs->r26 );
printk("v0 = %016lx t0 = %016lx t1 = %016lx\n",
regs->r0, regs->r1, regs->r2);
printk("t2 = %016lx t3 = %016lx t4 = %016lx\n",
regs->r3, regs->r4, regs->r5);
printk("t5 = %016lx t6 = %016lx t7 = %016lx\n",