All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje@watson.ibm.com>
To: Brad Midgley <brad@pht.com>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: test & set ppc assembly (libgcj vs. threads)
Date: Mon, 02 Aug 1999 15:02:32 -0400	[thread overview]
Message-ID: <9908021902.AA36310@marc.watson.ibm.com> (raw)
In-Reply-To: Message from Brad Midgley <brad@pht.com> of "Mon, 02 Aug 1999 09:54:55 MDT." <Pine.LNX.3.95.990802095050.20647A-100000@pacific.pht.com>


	The PowerPC User's Manuals provide an example in the appendix:

loop:	lwarx	    r5, 0, r3	   # load and reserve
	cmpwi	    r5, 0	   # compare to zero
	bne	    $+12	   # done if not equal
	stwcx.	    r4, 0, r3	   # try to store non-zero
	bne-	    loop	   # loop if lost reservation

r3 = address
r4 = new value
r5 = old value

David

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

      parent reply	other threads:[~1999-08-02 19:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-02 15:54 test & set ppc assembly (libgcj vs. threads) Brad Midgley
1999-08-02 18:49 ` Daniel Jacobowitz
1999-08-02 19:02 ` David Edelsohn [this message]

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=9908021902.AA36310@marc.watson.ibm.com \
    --to=dje@watson.ibm.com \
    --cc=brad@pht.com \
    --cc=linuxppc-dev@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.