Ask a question about show_code related mips architecture

From: peter meng
Date: Fri Jul 10 2009 - 05:47:27 EST



Hi

I met problem under mips architecture as following .
So I want to know whether <8c820000> is the current fault pointer like i386 ip register ? Does mips has similar register ?




epc : 801343d4 Tainted: P
ra : 80134c3c Status: 10008503 KERNEL EXL IE
Code: 001110c0 00431021 8c440010 <8c820000> 000212c2 30420001

static void show_code(unsigned int __user *pc)
{
long i;
unsigned short __user *pc16 = NULL;

printk("\nCode:");

if ((unsigned long)pc & 1)
pc16 = (unsigned short __user *)((unsigned long)pc & ~1);
for(i = -3 ; i < 6 ; i++) {
unsigned int insn;
if (pc16 ? __get_user(insn, pc16 + i) : __get_user(insn, pc + i)) {
printk(" (Bad address in epc)\n");
break;
}
printk("%c%0*x%c", (i?' ':'<'), pc16 ? 4 : 8, insn, (i?' ':'>'));
}
}

Thank a lot .
Peter Meng



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/