This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++-v3/config/cpu/m68k/bits/atomicity.h
- From: "Aaron J. Grier" <aaron at frye dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: coldfire at wildrice dot com
- Date: Tue, 4 Dec 2001 14:44:48 -0800
- Subject: libstdc++-v3/config/cpu/m68k/bits/atomicity.h
the __exchange_and_add inline for m68k currently only works on m68020
and higher, due to cas instruction... I received a revision to
atomicity.h from Chris Johns via Joel Sherril that handles atomicity by
turning off interrupts, but it seems like a solution that uses tas on a
static memory location would work on all m68k processors except maybe V2
and V3 coldfire.
libstdc++ people: this is just a poke to let you know that there's a
problem. (in case you didn't know already. I couldn't find any
references on the mailing list archives about it.)
coldfire people: any ideas for an atomic solution?
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
"In a few thousand years people will be scratching their heads
wondering how on earth the first computer was invented and
bootstrapped without a prior computer to do it with."
-- Chris Malcolm, on comp.arch