source: rtems/cpukit/aclocal/enable-smp.m4 @ e493e2a8

4.115
Last change on this file since e493e2a8 was 06dcaf0, checked in by Joel Sherrill <joel.sherrill@…>, on 03/16/11 at 20:05:06

2011-03-16 Jennifer Averett <jennifer.averett@…>

PR 1729/cpukit

  • configure.ac, sapi/include/confdefs.h, sapi/src/exinit.c, score/Makefile.am, score/preinstall.am, score/cpu/i386/rtems/score/cpu.h, score/cpu/sparc/cpu_asm.S, score/cpu/sparc/rtems/score/cpu.h, score/include/rtems/score/basedefs.h, score/include/rtems/score/context.h, score/include/rtems/score/percpu.h, score/src/percpu.c, score/src/thread.c, score/src/threadcreateidle.c: 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.
  • aclocal/check-smp.m4, aclocal/enable-smp.m4, score/include/rtems/bspsmp.h, score/include/rtems/score/smplock.h, score/src/smp.c, score/src/smplock.c: New files.
  • Property mode set to 100644
File size: 443 bytes
Line 
1dnl $Id$
2
3AC_DEFUN([RTEMS_ENABLE_SMP],
4[
5## AC_BEFORE([$0], [RTEMS_CHECK_SMP])dnl
6
7AC_ARG_ENABLE(smp,
8[AS_HELP_STRING([--enable-smp],[enable smp interface])],
9[case "${enableval}" in
10  yes) case "${RTEMS_CPU}" in
11         sparc|i386) RTEMS_HAS_SMP=yes ;;
12         *)          RTEMS_HAS_SMP=no ;;
13       esac
14       ;;
15  no) RTEMS_HAS_SMP=no ;;
16  *)  AC_MSG_ERROR(bad value ${enableval} for enable-smp option) ;;
17esac],[RTEMS_HAS_SMP=no])
18])
Note: See TracBrowser for help on using the repository browser.