From ec622ba5cccbf7a3cd98791d1f7f70b19bfc0afc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 1 May 2013 11:04:22 -0500 Subject: 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(-) (limited to 'aclocal') 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 ;; -- cgit v1.2.3