From: Richard Zidlicky <rz@linux-m68k.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [bug] testandset and cpu_interrupt
Date: Wed, 2 Jun 2004 15:47:21 +0200 [thread overview]
Message-ID: <20040602134721.GA6081@linux-m68k.org> (raw)
In-Reply-To: <20040601223050.84871.qmail@web60208.mail.yahoo.com>
On Tue, Jun 01, 2004 at 03:30:50PM -0700, Piotr Krysik wrote:
> Hello,
>
> Function testandset is referenced by cpu_interrupt,
> spin_lock and spin_trylock (spin_lock and spin_trylock
>
> for CONFIG_USER_ONLY). All these invocations assume
> that testandset should return zero when lock is
> successfully acquired.
>
> I noticed that implementation of testandset for x86
> does opposite, i.e. returns NON-zero when lock is
> successfully acquired.
seems like m68k does the same.
Richard
prev parent reply other threads:[~2004-06-02 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 22:30 [Qemu-devel] [bug] testandset and cpu_interrupt Piotr Krysik
2004-06-02 13:47 ` Richard Zidlicky [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=20040602134721.GA6081@linux-m68k.org \
--to=rz@linux-m68k.org \
--cc=qemu-devel@nongnu.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 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).