[rtems commit] Add RTEMS_CHECK_ATOMIC, RTEMS_CPUOPT([RTEMS_ATOMIC]), AM_CONDITIONAL ATOMIC.

Gedare Bloom gedare at rtems.org
Fri Feb 15 16:44:14 UTC 2013


I thought we are going to provide the functional implementations using
ISR Disable and Enable?

For now this modification is fine since it permits the master to
compile for targets, but I think this check should be eliminated as
soon as we get the ISR Disable / Enable fall-back option implemented.

On Thu, Feb 14, 2013 at 5:43 PM, Ralf Corsepius <ralf at rtems.org> wrote:
> Module:    rtems
> Branch:    master
> Commit:    a718918fbaf4e230551fd7a2e48b12558643b847
> Changeset: http://git.rtems.org/rtems/commit/?id=a718918fbaf4e230551fd7a2e48b12558643b847
>
> Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
> Date:      Thu Feb 14 23:35:33 2013 +0100
>
> Add RTEMS_CHECK_ATOMIC, RTEMS_CPUOPT([RTEMS_ATOMIC]), AM_CONDITIONAL ATOMIC.
>
> ---
>
>  cpukit/configure.ac |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/cpukit/configure.ac b/cpukit/configure.ac
> index e3c4dd4..f0bbfac 100644
> --- a/cpukit/configure.ac
> +++ b/cpukit/configure.ac
> @@ -149,6 +149,7 @@ RTEMS_CHECK_MULTIPROCESSING
>  RTEMS_CHECK_POSIX_API
>  RTEMS_CHECK_NETWORKING
>  RTEMS_CHECK_SMP
> +RTEMS_CHECK_ATOMIC
>
>  rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"`
>  rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"`
> @@ -186,6 +187,11 @@ RTEMS_CPUOPT([RTEMS_NETWORKING],
>    [1],
>    [if networking is enabled])
>
> +RTEMS_CPUOPT([RTEMS_ATOMIC],
> +  [test x"$rtems_cv_ATOMIC" = xyes],
> +  [1],
> +  [if cpu supports atomic operations])
> +
>  RTEMS_CPUOPT([RTEMS_VERSION],
>    [true],
>    ["]_RTEMS_VERSION["],
> @@ -304,6 +310,7 @@ AM_CONDITIONAL(HAS_SMP,[test "$RTEMS_HAS_SMP" = "yes"])
>
>  AM_CONDITIONAL(HAS_PTHREADS,test x"$rtems_cv_HAS_POSIX_API" = x"yes")
>  AM_CONDITIONAL(LIBNETWORKING,test x"$rtems_cv_HAS_NETWORKING" = x"yes")
> +AM_CONDITIONAL([ATOMIC],[test x"$rtems_cv_ATOMIC" = x"yes"])
>
>  AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"])
>  AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"])
>
> _______________________________________________
> rtems-vc mailing list
> rtems-vc at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-vc




More information about the devel mailing list