linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Scott Anderson <scott_anderson@mvista.com>
To: Raghava Raju <vraghava_raju@yahoo.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: program counter...
Date: Mon, 20 Aug 2001 10:46:36 -0700	[thread overview]
Message-ID: <3B814CFC.23A3C030@mvista.com> (raw)
In-Reply-To: 20010817171437.97580.qmail@web20003.mail.yahoo.com


Raghava Raju wrote:
>      I was unable to find the registers for
>   program counter,stack pointer. Which registers
>   I should use to access these values in powerpc.

Er, there isn't really an program counter register that you can read.
The only way I know to find it out the value of the internal "Next
Instruction Address" is to do a bl and then look at the LR (link
register) before doing a blr.

As far as the stack pointer goes, the PowerPC ABI (Application Binary
Interface) states that gpr1 should be used as the stack pointer and
therefor, it is...

    Scott Anderson
    scott_anderson@mvista.com   MontaVista Software Inc.
    (408)328-9214               1237 East Arques Ave.
    http://www.mvista.com       Sunnyvale, CA  94085

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-08-20 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17 17:14 program counter Raghava Raju
2001-08-20 17:46 ` Scott Anderson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-17 17:13 Raghava Raju
2001-08-17 17:24 ` David Edelsohn

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=3B814CFC.23A3C030@mvista.com \
    --to=scott_anderson@mvista.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=vraghava_raju@yahoo.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).