Am 24.02.2014 17:29, schrieb Michael Schnell:
On 02/24/2014 03:41 PM, Sven Barth wrote:
are normally OS independant as they normally use corresponding CPU
instructions.
Of course for simple stuff like inc/dec I can (better) use atomic 68 K
instruction :-) .
Of course. But e.g. not every Coldfire architecture supports them. For
this reason I introduced the cpuflags CPUM86K_HAS_TAS and
CPUM68K_HAS_CAS which are set if the test-and-set and the
compare-and-swap instructions are available respectively (68000 only has
the TAS, but not the CAS, 68020 and 68040 have CAS and TAS while
Coldfire ISA-A and ISA-A+ have neither and ISA-B and ISA-C only have
TAS). When I find the time I will implement the Interlocked* functions
accordingly :)
Regards,
Sven
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel