This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]