From: Kenny Simpson <theonetruekenny@yahoo.com>
To: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: set_bit() is broken on i386?
Date: Fri, 20 Jan 2006 17:38:35 -0800 (PST) [thread overview]
Message-ID: <20060121013835.24035.qmail@web34114.mail.mud.yahoo.com> (raw)
Would it not be more correct to have "+m" to show that the register is both an input and an
output, and nothing more?
Or is set_bit supposed to be a general barrier or fence?
static inline void set_bit(int nr, volatile unsigned long * addr)
{
__asm__ __volatile__( "lock ; "
"btsl %1,%0"
:"+m" (ADDR)
:"Ir" (nr));
}
-Kenny
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2006-01-21 1:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-21 1:38 Kenny Simpson [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-21 20:49 Chuck Ebbert
2006-01-21 7:43 Chuck Ebbert
2006-01-21 2:07 Kenny Simpson
2006-01-21 1:46 Kenny Simpson
2006-01-21 0:53 Chuck Ebbert
2006-01-21 1:15 ` Trond Myklebust
2006-01-21 1:49 ` Andreas Schwab
2006-01-21 2:38 ` Andrew Morton
2006-01-21 19:26 ` Trond Myklebust
2006-01-21 1:32 ` Valdis.Kletnieks
2006-01-21 2:01 ` Grzegorz Kulewski
2006-01-21 1:48 ` Andrew Morton
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=20060121013835.24035.qmail@web34114.mail.mud.yahoo.com \
--to=theonetruekenny@yahoo.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®