From: Petr Vandrovec <vandrove@vc.cvut.cz>
To: san_madhav@hotmail.com
Cc: inaky.perez-gonzalez@intel.com, Tim Hockin <thockin@hockin.org>,
linux-kernel@vger.kernel.org
Subject: Re: [OT] Question on atomic_inc/dec
Date: Wed, 15 Oct 2003 20:02:06 +0200 [thread overview]
Message-ID: <20031015180206.GA7250@vana.vc.cvut.cz> (raw)
In-Reply-To: <A20D5638D741DD4DBAAB80A95012C0AED7868F@orsmsx409.jf.intel.com>
On Wed, Oct 15, 2003 at 10:38:14AM -0700, Perez-Gonzalez, Inaky wrote:
> > From: sankar [mailto:san_madhav@hotmail.com]
>
> > any solution to the original problem???
> > (atomic_inc() defintion not there in redhat 9.0 asm/atomic.h)
>
> Create an atomic.h header file in your source tree with the code
> below, but bear in mind that porting to other arches might be painful:
It is OT, but if you are interested, take a look at include/private/*atomic*,
include/private/*/*atomic* and relevant portions (ncphost) of configure.ac
in the ncpfs package (http://platan.vc.cvut.cz/ftp/pub/linux/ncpfs/ncpfs-2.2.3.tar.gz).
It contains UP, pthread based, and several asm optimized versions of
atomic ops. I'm not 100% sure that all asm versions work correctly,
but I have received no complaints yet...
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz
prev parent reply other threads:[~2003-10-15 18:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-15 17:38 Perez-Gonzalez, Inaky
2003-10-15 18:02 ` Petr Vandrovec [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=20031015180206.GA7250@vana.vc.cvut.cz \
--to=vandrove@vc.cvut.cz \
--cc=inaky.perez-gonzalez@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=san_madhav@hotmail.com \
--cc=thockin@hockin.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®