summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/check-atomic.m4
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-14 11:18:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-17 08:46:38 +0100
commit8a9568d2e708d9c33e75b7de5993c8e99354933a (patch)
treed52e101f444a004ef73a525f9e5196198248200d /cpukit/aclocal/check-atomic.m4
parentsparc: Add atomic support for SPARC V8 (diff)
downloadrtems-8a9568d2e708d9c33e75b7de5993c8e99354933a.tar.bz2
Require presence of <stdatomic.h> for SMP support
Diffstat (limited to '')
-rw-r--r--cpukit/aclocal/check-atomic.m419
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"])
- ])
-])