[rtems commit] tests: atomic support for RTEMS. Uniprocessor tests for atomic ops.

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 11 14:43:31 UTC 2013


On 02/08/2013 02:17 AM, Gedare Bloom wrote:
> I suppose the question is whether we want to let code that includes
> the atomics compile for an unsupported CPU. I think we should define a
> minimal stub that allows the code to compile and assert(false) so that
> any user that actually tries it will get an obvious failure.

Yes, we should provide a stub that uses ISR disable/enable around the operation.

>
> An alternate solution would be to use automagic to prevent the
> spatomic* from being included. Maybe if we had an experimental flag:)

We have test in Autoconf to check if a header include works.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list