[rtems-schedsim commit] alocal/*smp*.m4: Change so SMP can be enabled on Scheduler Simulator

Joel Sherrill joel at rtems.org
Wed May 1 16:05:22 UTC 2013


Module:    rtems-schedsim
Branch:    master
Commit:    ec622ba5cccbf7a3cd98791d1f7f70b19bfc0afc
Changeset: http://git.rtems.org/rtems-schedsim/commit/?id=ec622ba5cccbf7a3cd98791d1f7f70b19bfc0afc

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed May  1 11:04:22 2013 -0500

alocal/*smp*.m4: Change so SMP can be enabled on Scheduler Simulator

The real RTEMS code ensures that SMP is enabled only for targets
supporting it.

---

 aclocal/check-smp.m4  |    2 +-
 aclocal/enable-smp.m4 |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/aclocal/check-smp.m4 b/aclocal/check-smp.m4
index b0ca455..a0c8b81 100644
--- a/aclocal/check-smp.m4
+++ b/aclocal/check-smp.m4
@@ -3,7 +3,7 @@ AC_DEFUN([RTEMS_CHECK_SMP],
 [dnl
 AC_REQUIRE([RTEMS_ENABLE_SMP])dnl
 
-AC_CACHE_CHECK([whether CPU supports libposix],
+AC_CACHE_CHECK([whether CPU supports SMP],
   rtems_cv_HAS_SMP,
   [dnl
     case "$RTEMS_CPU" in
diff --git a/aclocal/enable-smp.m4 b/aclocal/enable-smp.m4
index b290ac3..7d7bea2 100644
--- a/aclocal/enable-smp.m4
+++ b/aclocal/enable-smp.m4
@@ -1,3 +1,4 @@
+# ***** CHANGED FOR SCHEDULER SIMULATOR ***** 
 AC_DEFUN([RTEMS_ENABLE_SMP],
 [
 ## AC_BEFORE([$0], [RTEMS_CHECK_SMP])dnl
@@ -6,8 +7,9 @@ AC_ARG_ENABLE(smp,
 [AS_HELP_STRING([--enable-smp],[enable smp interface])],
 [case "${enableval}" in 
   yes) case "${RTEMS_CPU}" in
-         sparc|i386) RTEMS_HAS_SMP=yes ;;
-         *)          RTEMS_HAS_SMP=no ;;
+         #sparc|i386) RTEMS_HAS_SMP=yes ;;
+         #*)          RTEMS_HAS_SMP=no ;;
+         *)          RTEMS_HAS_SMP=yes ;;
        esac
        ;;
   no) RTEMS_HAS_SMP=no ;;




More information about the vc mailing list