From 20546ace8743916f795dafdba75f0949107f1b77 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 16 Mar 2011 20:05:26 +0000 Subject: 2011-03-16 Jennifer Averett PR 1729/cpukit * Makefile.am, configure.ac: Add next step in SMP support. This adds an allocated array of the Per_CPU structures to support multiple cpus vs a single instance of the structure which is still used if SMP support is disabled. Configuration support is also added to explicitly enable or disable SMP. But SMP can only be enabled for the CPUs which will support it initially -- SPARC and i386. With the stub BSP support, a BSP can be run as a single core SMP system from an RTEMS data structure standpoint. --- c/src/lib/libbsp/i386/pc386/configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'c/src/lib/libbsp/i386/pc386/configure.ac') diff --git a/c/src/lib/libbsp/i386/pc386/configure.ac b/c/src/lib/libbsp/i386/pc386/configure.ac index 2f80930d49..7cfd322d9f 100644 --- a/c/src/lib/libbsp/i386/pc386/configure.ac +++ b/c/src/lib/libbsp/i386/pc386/configure.ac @@ -17,6 +17,7 @@ RTEMS_CHECK_TOOL(OBJCOPY,objcopy,:) RTEMS_PROG_CCAS RTEMS_CHECK_NETWORKING +RTEMS_CHECK_SMP RTEMS_BSPOPTS_SET([USE_COM1_AS_CONSOLE],[*],[0]) RTEMS_BSPOPTS_HELP([USE_COM1_AS_CONSOLE], @@ -79,11 +80,19 @@ if test X${CLOCK_DRIVER_USE_TSC} = X1 -a X${CLOCK_DRIVER_USE_8254} = X1 ; then AC_MSG_ERROR([pc386 both TSC and 8254 specified for clock driver]) fi +RTEMS_BSPOPTS_SET([BSP_HAS_SMP],[*],[1]) +RTEMS_BSPOPTS_HELP([BSP_HAS_SMP], +[Always defined when on a pc386 to enable the pc386 support for + determining the CPU core number in an SMP configuration.]) + ## if this is an i386, does gas have good code16 support? RTEMS_I386_GAS_CODE16 AM_CONDITIONAL(RTEMS_GAS_CODE16,[test "$RTEMS_GAS_CODE16" = "yes"]) + AM_CONDITIONAL(HAS_NETWORKING,[test "$HAS_NETWORKING" = "yes"]) +AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"]) + AC_SUBST([RTEMS_ROOT],[${rtems_updir}'$(top_builddir)']) -- cgit v1.2.3