[rtems commit] New.

Ralf Corsepius ralf at rtems.org
Thu Feb 14 22:43:44 UTC 2013


Module:    rtems
Branch:    master
Commit:    390258c4f84cef6789013b36349be2569d5af7c5
Changeset: http://git.rtems.org/rtems/commit/?id=390258c4f84cef6789013b36349be2569d5af7c5

Author:    Ralf Corsépius <ralf.corsepius at rtems.org>
Date:      Thu Feb 14 23:45:23 2013 +0100

New.

---

 cpukit/aclocal/check-atomic.m4 |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/cpukit/aclocal/check-atomic.m4 b/cpukit/aclocal/check-atomic.m4
new file mode 100644
index 0000000..97943eb
--- /dev/null
+++ b/cpukit/aclocal/check-atomic.m4
@@ -0,0 +1,13 @@
+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],[
+    AS_IF(
+      [test -f "${srcdir}/score/cpu/$RTEMS_CPU/rtems/score/cpuatomic.h"],
+      [rtems_cv_ATOMIC="yes"],
+      [rtems_cv_ATOMIC="no"])
+  ])
+])




More information about the vc mailing list