Changeset 0d5a9f1 in rtems


Ignore:
Timestamp:
Apr 27, 2011, 5:18:59 PM (9 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
15cf2cb
Parents:
5f82db9
Message:

2011-04-27 Jennifer Averett <Jennifer.Averett@…>

PR 1784

  • sapi/src/exinit.c, score/Makefile.am, score/preinstall.am, score/include/rtems/bspsmp.h, score/src/percpu.c, score/src/smp.c, score/src/threadcreateidle.c: Split bspsmp.h into two files smp.h and bspsmp.h
  • score/include/rtems/score/smp.h: New file.
Location:
cpukit
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5f82db9 r0d5a9f1  
     12011-04-27      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        PR 1784
     4        * sapi/src/exinit.c, score/Makefile.am, score/preinstall.am,
     5        score/include/rtems/bspsmp.h, score/src/percpu.c, score/src/smp.c,
     6        score/src/threadcreateidle.c: Split bspsmp.h into two files smp.h and
     7        bspsmp.h
     8        * score/include/rtems/score/smp.h: New file.
     9
    1102011-04-25      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    211
  • cpukit/sapi/src/exinit.c

    r5f82db9 r0d5a9f1  
    5959
    6060#if defined(RTEMS_SMP)
    61   #include <rtems/bspsmp.h>
     61  #include <rtems/score/smp.h>
    6262  #include <rtems/score/percpu.h>
    6363#endif
  • cpukit/score/Makefile.am

    r5f82db9 r0d5a9f1  
    3838    include/rtems/score/watchdog.h include/rtems/score/wkspace.h \
    3939    include/rtems/score/cpuopts.h include/rtems/score/basedefs.h \
    40     include/rtems/score/smplock.h
     40    include/rtems/score/smplock.h include/rtems/score/smp.h
    4141
    4242if HAS_PTHREADS
  • cpukit/score/include/rtems/bspsmp.h

    r5f82db9 r0d5a9f1  
    4545#endif
    4646
    47 /**
    48  *  This defines the bit which indicates the interprocessor interrupt
    49  *  has been requested so that RTEMS will reschedule on this CPU
    50  *  because the currently executing thread needs to be switched out.
    51  */
    52 #define RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY  0x01
    53 
    54 /**
    55  *  This defines the bit which indicates the interprocessor interrupt
    56  *  has been requested so that RTEMS will reschedule on this CPU
    57  *  because the currently executing thread has been sent a signal.
    58  */
    59 #define RTEMS_BSP_SMP_SIGNAL_TO_SELF            0x02
    60 
    61 /**
    62  *  This defines the bit which indicates the interprocessor interrupt
    63  *  has been requested so that this CPU will be shutdown.  This is done
    64  *  as part of rtems_executive_shutdown().
    65  */
    66 #define RTEMS_BSP_SMP_SHUTDOWN                  0x04
    67 
    68 /**
    69  *  This defines the bit which indicates the interprocessor interrupt
    70  *  has been requested that the receiving CPU needs to perform a context
    71  *  switch to the first task.
    72  */
    73 #define RTEMS_BSP_SMP_FIRST_TASK                0x08
    7447
    7548#ifndef ASM
    76 /**
    77  *  @brief Number of CPUs in SMP System
    78  *
    79  *  This variable is set during the SMP initialization sequence to
    80  *  indicate the number of CPUs in this system.
    81  */
    82 SCORE_EXTERN uint32_t _SMP_Processor_count;
    83 
    8449/**
    8550 *  @brief Maximum Number of CPUs in SMP System
     
    12893void rtems_smp_send_message(
    12994  int       cpu,
    130   uint32_t  message
    131 );
    132 
    133 /**
    134  *  @brief Make Request of Others CPUs
    135  *
    136  *  This method is invoked by RTEMS when it needs to make a request
    137  *  of the other CPUs.  It should be implemented using some type of
    138  *  interprocessor interrupt. CPUs not including the originating
    139  *  CPU should receive the message.
    140  *
    141  *  @param [in] message is message to send
    142  */
    143 void bsp_smp_broadcast_message(
    144   uint32_t  message
    145 );
    146 
    147 /**
    148  *  @brief Make Request of Others CPUs
    149  *
    150  *  This method is invoked by XXX when it needs to make a request
    151  *  of the other CPUs. 
    152  *
    153  *  @param [in] message is message to send
    154  */
    155 void rtems_smp_broadcast_message(
    15695  uint32_t  message
    15796);
     
    231170void rtems_smp_process_interrupt(void);
    232171
     172void bsp_smp_wait_for(
     173  volatile unsigned int *address,
     174  unsigned int           desired,
     175  int                    maximum_usecs
     176);
     177
    233178#endif
    234179
  • cpukit/score/preinstall.am

    r5f82db9 r0d5a9f1  
    200200PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/smplock.h
    201201
     202$(PROJECT_INCLUDE)/rtems/score/smp.h: include/rtems/score/smp.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
     203        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/smp.h
     204PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/smp.h
     205
    202206if HAS_PTHREADS
    203207$(PROJECT_INCLUDE)/rtems/score/corespinlock.h: include/rtems/score/corespinlock.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
  • cpukit/score/src/percpu.c

    r5f82db9 r0d5a9f1  
    2020#include <rtems/score/wkspace.h>
    2121#include <rtems/config.h>
    22 #include <rtems/bspsmp.h>
     22#include <rtems/score/smp.h>
    2323#include <string.h>
    2424
  • cpukit/score/src/smp.c

    r5f82db9 r0d5a9f1  
    1616#include <rtems/system.h>
    1717#include <rtems/bspsmp.h>
     18#include <rtems/score/smp.h>
    1819#include <rtems/score/thread.h>
    1920
  • cpukit/score/src/threadcreateidle.c

    r5f82db9 r0d5a9f1  
    3131#include <rtems/score/wkspace.h>
    3232#include <rtems/config.h>
    33 #include <rtems/bspsmp.h>
     33#include <rtems/score/smp.h>
    3434
    3535static inline void _Thread_Create_idle_helper(
Note: See TracChangeset for help on using the changeset viewer.