Changeset 06dcaf0 in rtems for cpukit/sapi/src/exinit.c


Ignore:
Timestamp:
Mar 16, 2011, 8:05:06 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
66729db
Parents:
ef99f23a
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    ref99f23a r06dcaf0  
    22 *  Initialization Manager
    33 *
    4  *  COPYRIGHT (c) 1989-2008.
     4 *  COPYRIGHT (c) 1989-2011.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    5656#ifdef RTEMS_POSIX_API
    5757  #include <rtems/posix/posixapi.h>
     58#endif
     59
     60#if defined(RTEMS_SMP)
     61  #include <rtems/bspsmp.h>
     62  #include <rtems/score/percpu.h>
    5863#endif
    5964
     
    115120  _Workspace_Handler_initialization();
    116121
     122  #if defined(RTEMS_SMP)
     123    _SMP_Handler_initialize();
     124  #endif
     125
    117126  _User_extensions_Handler_initialization();
    118127  _ISR_Handler_initialization();
     
    149158  #ifdef RTEMS_POSIX_API
    150159    _POSIX_API_Initialize();
     160  #endif
     161
     162  /*
     163   * Discover and initialize the secondary cores in an SMP system.
     164   */
     165  #if defined(RTEMS_SMP)
     166    _SMP_Processor_count = bsp_smp_initialize( rtems_smp_maximum_processors );
    151167  #endif
    152168
Note: See TracChangeset for help on using the changeset viewer.