summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-05-01 11:04:22 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-05-01 11:04:22 -0500
commitec622ba5cccbf7a3cd98791d1f7f70b19bfc0afc (patch)
tree8aa817e0b9355bb821d21d8f0aca9a14cc4112e4
parentSUPPORT: Fix phone number (diff)
downloadrtems-schedsim-ec622ba5cccbf7a3cd98791d1f7f70b19bfc0afc.tar.bz2
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.
-rw-r--r--aclocal/check-smp.m42
-rw-r--r--aclocal/enable-smp.m46
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 ;;