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

Joel Sherrill joel.sherrill at OARcorp.com
Mon Feb 11 14:47:43 UTC 2013


On 2/11/2013 8:43 AM, Sebastian Huber wrote:
> 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.
+1
>> 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.
>
But if we really want this to be available on ALL targets, then we have to
provide a functional fallback version.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the devel mailing list