* Ask a question about show_code related mips architecture
@ 2009-07-10 9:47 peter meng
0 siblings, 0 replies; only message in thread
From: peter meng @ 2009-07-10 9:47 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-10 9:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10 9:47 Ask a question about show_code related mips architecture peter meng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®