Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Aug 2003 00:45:58 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        "Portante, Peter" <peter.portante@hp.com>
Cc:        alpha@freebsd.org
Subject:   Re: Atomic swap
Message-ID:  <3F335536.89A6A07D@mindspring.com>
References:  <B24FABB430F7C94D942D6386447C93DC0512B55D@tayexc17.americas.cpqcorp.net>

index | next in thread | previous in thread | raw e-mail

"Portante, Peter" wrote:
> Additionally, the stq_c destroys the contents of %2, so you need to
> move the value in %2 into another register for use in the stq_c.  I
> don't know how to do that in the ASM, so I just used raw register
> names below, highlighted in red.

You have to be sneaky.

OR the value in the regiter with 0 and store the result in
the register you want to move it to.

-- Terry


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F335536.89A6A07D>