All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Rowand <frank_rowand@mvista.com>
To: Jim Duey <jduey@ccc-dcs.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: PPC 405 Register Model
Date: Tue, 30 Oct 2001 12:31:37 -0800	[thread overview]
Message-ID: <3BDF0E29.8FFB2C7@mvista.com> (raw)
In-Reply-To: 3BD813CE000007B2@charlotte.ccc-dcs.com


Jim Duey wrote:
>
> I'm needing to do some inline assembly for the Walnut board running MVista's
> Hard Hat Linux and I'm concerned about clobbering registers.  Can someone
> point me to docs or source code that describes the register usage of HHL on
> the 405GP?

If you use variable names instead of hard coding register numbers you
don't have to worry about clobbering registers.  For example, look
at include/asm-ppc/atomic.h and you can find documentation of inline
assembly at:

  http://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_4.html#SEC93

-Frank
--
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc

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

  parent reply	other threads:[~2001-10-30 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-30 17:58 PPC 405 Register Model Jim Duey
2001-10-30 18:54 ` Jerry Van Baren
2001-10-30 20:31 ` Frank Rowand [this message]
2001-10-30 19:54   ` Scott Anderson
2001-10-30 20:53     ` Peter Barada
  -- strict thread matches above, loose matches on Subject: below --
2001-10-30 19:40 Jim Duey

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=3BDF0E29.8FFB2C7@mvista.com \
    --to=frank_rowand@mvista.com \
    --cc=frowand@mvista.com \
    --cc=jduey@ccc-dcs.com \
    --cc=linuxppc-embedded@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.