Skip to contentSkip to conversation

Ask a question about show_code related mips architecture

DISCUSSION peter meng 1 participant 1 message Jul 10, 2009

lore
Share & tools
lore

peter meng

author
#0 lore raw

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