Changeset 42bb344e in rtems


Ignore:
Timestamp:
May 11, 2011, 2:22:35 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
0f0f1b24
Parents:
f3ea4992
Message:

2011-05-11 Jennifer Averett <Jennifer.Averett@…>

  • score/Makefile.am, score/preinstall.am, score/include/rtems/score/percpu.h, score/src/percpu.c, score/src/threadcreateidle.c: Modifications to restrict compilation of SMP only code to when SMP is enabled. Entire SMP specific files are disabled via Makefile.am.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf3ea4992 r42bb344e  
     12011-05-11      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * score/Makefile.am, score/preinstall.am,
     4        score/include/rtems/score/percpu.h, score/src/percpu.c,
     5        score/src/threadcreateidle.c: Modifications to restrict compilation
     6        of SMP only code to when SMP is enabled. Entire SMP specific files
     7        are disabled via Makefile.am.
     8
    192011-05-11      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • cpukit/score/Makefile.am

    rf3ea4992 r42bb344e  
    3737    include/rtems/score/tqdata.h include/rtems/score/userext.h \
    3838    include/rtems/score/watchdog.h include/rtems/score/wkspace.h \
    39     include/rtems/score/cpuopts.h include/rtems/score/basedefs.h \
     39    include/rtems/score/cpuopts.h include/rtems/score/basedefs.h
     40
     41if HAS_SMP
     42include_rtems_score_HEADERS += \
    4043    include/rtems/score/smplock.h include/rtems/score/smp.h
     44endif
     45
    4146
    4247if HAS_PTHREADS
     
    9297endif
    9398
     99if HAS_SMP
    94100libscore_a_SOURCES += src/smp.c src/smplock.c
     101endif
    95102
    96103## CORE_APIMUTEX_C_FILES
  • cpukit/score/include/rtems/score/percpu.h

    rf3ea4992 r42bb344e  
    2828    #include <rtems/score/smplock.h>
    2929  #endif
     30
     31  /*
     32   * NOTE: This file MUST be included on non-smp systems as well
     33   *       in order to define bsp_smp_processor_id.
     34   */
    3035  #include <rtems/bspsmp.h>
    3136#endif
  • cpukit/score/preinstall.am

    rf3ea4992 r42bb344e  
    196196PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/basedefs.h
    197197
     198if HAS_SMP
    198199$(PROJECT_INCLUDE)/rtems/score/smplock.h: include/rtems/score/smplock.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
    199200        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/smplock.h
     
    203204        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/smp.h
    204205PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/smp.h
    205 
     206endif
    206207if HAS_PTHREADS
    207208$(PROJECT_INCLUDE)/rtems/score/corespinlock.h: include/rtems/score/corespinlock.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
  • cpukit/score/src/percpu.c

    rf3ea4992 r42bb344e  
    1818#include <rtems/score/percpu.h>
    1919#include <rtems/score/wkspace.h>
    20 #include <rtems/score/wkspace.h>
    2120#include <rtems/config.h>
    22 #include <rtems/score/smp.h>
    2321#include <string.h>
    2422
    2523#if defined(RTEMS_SMP)
     24
     25  #include <rtems/score/smp.h>
     26
    2627  void _SMP_Handler_initialize(void)
    2728  {
  • cpukit/score/src/threadcreateidle.c

    rf3ea4992 r42bb344e  
    3131#include <rtems/score/wkspace.h>
    3232#include <rtems/config.h>
    33 #include <rtems/score/smp.h>
     33#if defined(RTEMS_SMP)
     34  #include <rtems/score/smp.h>
     35#endif
    3436
    3537static inline void _Thread_Create_idle_helper(
Note: See TracChangeset for help on using the changeset viewer.