diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-14 11:18:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-17 08:46:38 +0100 |
commit | 8a9568d2e708d9c33e75b7de5993c8e99354933a (patch) | |
tree | d52e101f444a004ef73a525f9e5196198248200d /cpukit/aclocal | |
parent | dcd97c77f0be5fc46352fca7ea2f8b8633a55919 (diff) |
Require presence of <stdatomic.h> for SMP support
Diffstat (limited to 'cpukit/aclocal')
-rw-r--r-- | cpukit/aclocal/check-atomic.m4 | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/cpukit/aclocal/check-atomic.m4 b/cpukit/aclocal/check-atomic.m4 deleted file mode 100644 index 69cca509a7..0000000000 --- a/cpukit/aclocal/check-atomic.m4 +++ /dev/null @@ -1,19 +0,0 @@ -dnl -AC_DEFUN([RTEMS_CHECK_ATOMIC], -[dnl -AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl - -AC_CACHE_CHECK([whether CPU supports atomic operations], - [rtems_cv_ATOMIC],[ - AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[#include <stdatomic.h>]], - [[atomic_uint_fast32_t t; uint_fast32_t m = 1; - atomic_init(&t, 0); - atomic_store( &t, 1 ); - atomic_exchange( &t, 2 ); - atomic_compare_exchange_strong( &t, &m, 2); - atomic_fetch_add( &t, 3 );]])], - [rtems_cv_ATOMIC="yes"], - [rtems_cv_ATOMIC="no"]) - ]) -]) |