From: peter meng <mengsanshui@yahoo.com.cn>
To: linux-kernel@vger.kernel.org
Subject: Ask a question about show_code related mips architecture
Date: Fri, 10 Jul 2009 17:47:16 +0800 (CST) [thread overview]
Message-ID: <640965.87593.qm@web15708.mail.cnb.yahoo.com> (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
reply other threads:[~2009-07-10 9:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=640965.87593.qm@web15708.mail.cnb.yahoo.com \
--to=mengsanshui@yahoo.com.cn \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®