From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: tonyko@lineo.ca, robin.getz@analog.com, linux-kernel@vger.kernel.org
Subject: Re: blackfin - cmpxchg not atomic ?
Date: Fri, 20 Jul 2007 16:45:07 -0400 [thread overview]
Message-ID: <20070720204507.GA15760@Krystal> (raw)
In-Reply-To: <8bd0f97a0707201336l6bed7c24i7014333ce356417f@mail.gmail.com>
* Mike Frysinger (vapier.adi@gmail.com) wrote:
> On 7/20/07, Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
> >I am currently passing through each architectures adding a
> >cmpxchg_local() to each system.h, and I notice that you disable
> >interrupts in your cmpxchg() implementation, why are you doing so ?
>
> because Blackfin lacks any atomic instructions
>
> >Also, does you assembly stub _really_ modify memory atomically ? If yes,
> >then there should be no need for disabling interrupts. Else, I see a
> >major problem with SMP.
>
> that isnt the only problem with SMP on Blackfin
>
> >I also don't like the comment in asm-blackfin/atomic.h :
> >
> > * Generally we do not concern about SMP BFIN systems, so we don't have
> > * to deal with that.
> >
> >I have seen on the blackfin website that you actually sell a board with
> >SMP. Why aren't you caring about it ?
>
> just because a processor has more than one core does not make it SMP
> -mike
I see, thanks for the reply. Is there a particular reason for
implementing system.h/cmpxchg() in assembly rather that in plain C then?
--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next prev parent reply other threads:[~2007-07-20 20:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 20:28 Mathieu Desnoyers
2007-07-20 20:36 ` Mike Frysinger
2007-07-20 20:45 ` Mathieu Desnoyers [this message]
2007-07-20 20:59 ` Mike Frysinger
2007-07-21 7:29 ` Robert Schwebel
2007-07-21 8:37 ` Mike Frysinger
2007-07-23 17:24 ` Robin Getz
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=20070720204507.GA15760@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.getz@analog.com \
--cc=tonyko@lineo.ca \
--cc=vapier.adi@gmail.com \
/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®