From: Wolfgang Denk <wd@denx.de>
To: Lucinda Schafer <lucsch@adaptivemicro.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Software Emulation Kernel Panic--specific information
Date: Wed, 21 Jun 2000 22:08:27 +0200 [thread overview]
Message-ID: <200006212008.WAA24859@denx.local.net> (raw)
In-Reply-To: Your message of "Wed, 21 Jun 2000 12:26:58 CDT." <A109131318C4D1119AC20060088DECE330F493@amwmail.adaptivemicro.com>
In message <A109131318C4D1119AC20060088DECE330F493@amwmail.adaptivemicro.com>
Lucinda Schafer wrote:
>
> The NIP, LR, and TRAP always seem to be set to the same values (others
> vary). I assume those values are physical addresses.
No. All these are virtual addresses.
> If so, from System.map, the NIP seems to be between c0001f00 t Trap_1f and
> c0002000 T transfer_to_handler.
It should be obvious that 0xCxxxxxxx is a virtual address.
> I can't make sense of this, since I don't fully understand what the
> relationship of NIP and LR are. Does the LR address refer to the return
> address after the exception? Does this mean the exception happened in the
> Decrementer timer interrupt? Why is the NIP set to a value between Trap_1f
> and transfer_to_handler?
NIP means "Next Instruction Pointer" and contains the address of the
statement following the one that caused the exception; LR is the link
register and contains the return address = the address where executun
continues when you return from the current function.
So in simple words: NIP-4 gives the IP (Intruction Pointer) aka PC
(Program Counter), and LR-4 is the place where your current function
was called.
Hope this helps,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
To get something done, a committee should consist of no more than
three men, two of them absent.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-06-21 20:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-21 17:26 Software Emulation Kernel Panic--specific information Lucinda Schafer
2000-06-21 20:08 ` Wolfgang Denk [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-06-21 19:13 Lucinda Schafer
2000-06-21 19:18 Lucinda Schafer
2000-06-21 19:52 Lucinda Schafer
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=200006212008.WAA24859@denx.local.net \
--to=wd@denx.de \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=lucsch@adaptivemicro.com \
/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;
as well as URLs for NNTP newsgroup(s).