Changeset 453bb4b in rtems


Ignore:
Timestamp:
Dec 29, 2019, 4:43:46 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
f74e806d
Parents:
a320aedd
git-author:
Sebastian Huber <sebastian.huber@…> (12/29/19 16:43:46)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/02/20 08:26:59)
Message:

rtems: Fix MPCI initialization

Update #2408.

Files:
16 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/rtems/msgmp.h

    ra320aedd r453bb4b  
    168168
    169169/**
    170  *
    171  * @brief _Message_queue_MP_Process_packet
    172  *
    173  * This routine performs the actions specific to this package for
    174  * the request from another node.
    175  */
    176 void _Message_queue_MP_Process_packet (
    177   rtems_packet_prefix *the_packet_prefix
    178 );
    179 
    180 /**
    181170 *  @brief _Message_queue_MP_Send_object_was_deleted
    182171 *
  • cpukit/include/rtems/rtems/partmp.h

    ra320aedd r453bb4b  
    101101);
    102102
    103 /**
    104  *
    105  *  @brief Partition_MP_Process_packet
    106  *
    107  *  This routine performs the actions specific to this package for
    108  *  the request from another node.
    109  */
    110 void _Partition_MP_Process_packet (
    111   rtems_packet_prefix *the_packet_prefix
    112 );
    113 
    114103/*
    115104 *  @brief Partition_MP_Send_object_was_deleted
  • cpukit/include/rtems/rtems/semmp.h

    ra320aedd r453bb4b  
    9696
    9797/**
    98  *  @brief Semaphore MP Process Packet
    99  *
    100  *  This routine performs the actions specific to this package for
    101  *  the request from another node.
    102  */
    103 void _Semaphore_MP_Process_packet (
    104   rtems_packet_prefix *the_packet_prefix
    105 );
    106 
    107 /**
    10898 *  @brief Semaphore MP Send Object was Deleted
    10999 *
  • cpukit/include/rtems/rtems/taskmp.h

    ra320aedd r453bb4b  
    8888
    8989/**
    90  *  @brief _RTEMS_tasks_MP_Process_packet
    91  *
    92  *  This routine performs the actions specific to this package for
    93  *  the request from another node.
    94  */
    95 void _RTEMS_tasks_MP_Process_packet (
    96   rtems_packet_prefix *the_packet_prefix
    97 );
    98 
    99 /**
    10090 *  @brief _RTEMS_tasks_MP_Send_object_was_deleted
    10191 *
  • cpukit/include/rtems/sysinit.h

    ra320aedd r453bb4b  
    3737#define RTEMS_SYSINIT_USER_EXTENSIONS            000900
    3838#define RTEMS_SYSINIT_CLASSIC_TASKS              000a00
     39#define RTEMS_SYSINIT_CLASSIC_TASKS_MP           000a80
    3940#define RTEMS_SYSINIT_CLASSIC_TIMER              000b00
    40 #define RTEMS_SYSINIT_CLASSIC_SIGNAL             000c00
    41 #define RTEMS_SYSINIT_CLASSIC_EVENT              000d00
     41#define RTEMS_SYSINIT_CLASSIC_SIGNAL_MP          000c00
     42#define RTEMS_SYSINIT_CLASSIC_EVENT_MP           000d00
    4243#define RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE      000e00
     44#define RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE_MP   000e80
    4345#define RTEMS_SYSINIT_CLASSIC_SEMAPHORE          000f00
     46#define RTEMS_SYSINIT_CLASSIC_SEMAPHORE_MP       000f80
    4447#define RTEMS_SYSINIT_CLASSIC_PARTITION          001000
     48#define RTEMS_SYSINIT_CLASSIC_PARTITION_MP       001080
    4549#define RTEMS_SYSINIT_CLASSIC_REGION             001100
    4650#define RTEMS_SYSINIT_CLASSIC_DUAL_PORTED_MEMORY 001200
  • cpukit/rtems/src/eventseize.c

    ra320aedd r453bb4b  
    102102
    103103#if defined(RTEMS_MULTIPROCESSING)
    104 static void _Event_Manager_initialization( void )
     104static void _Event_MP_Initialize( void )
    105105{
    106106  _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet );
     
    108108
    109109RTEMS_SYSINIT_ITEM(
    110   _Event_Manager_initialization,
    111   RTEMS_SYSINIT_CLASSIC_EVENT,
     110  _Event_MP_Initialize,
     111  RTEMS_SYSINIT_CLASSIC_EVENT_MP,
    112112  RTEMS_SYSINIT_ORDER_MIDDLE
    113113);
  • cpukit/rtems/src/msgmp.c

    ra320aedd r453bb4b  
    2525#include <rtems/score/statesimpl.h>
    2626#include <rtems/score/threadimpl.h>
     27#include <rtems/sysinit.h>
    2728
    2829RTEMS_STATIC_ASSERT(
     
    362363}
    363364
    364 /*
    365  *
    366  *  _Message_queue_MP_Process_packet
    367  *
    368  */
    369 
    370 void _Message_queue_MP_Process_packet (
     365static void _Message_queue_MP_Process_packet (
    371366  rtems_packet_prefix   *the_packet_prefix
    372367)
     
    591586}
    592587
    593 /* end of file */
     588static void _Message_queue_MP_Initialize( void )
     589{
     590  _MPCI_Register_packet_processor(
     591    MP_PACKET_MESSAGE_QUEUE,
     592    _Message_queue_MP_Process_packet
     593  );
     594}
     595
     596RTEMS_SYSINIT_ITEM(
     597  _Message_queue_MP_Initialize,
     598  RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE_MP,
     599  RTEMS_SYSINIT_ORDER_MIDDLE
     600);
  • cpukit/rtems/src/msgqcreate.c

    ra320aedd r453bb4b  
    145145}
    146146
    147 static void _Message_queue_Manager_initialization(void)
     147static void _Message_queue_Manager_initialization( void )
    148148{
    149    _Objects_Initialize_information( &_Message_queue_Information);
    150 
    151   /*
    152    *  Register the MP Process Packet routine.
    153    */
    154 
    155 #if defined(RTEMS_MULTIPROCESSING)
    156   _MPCI_Register_packet_processor(
    157     MP_PACKET_MESSAGE_QUEUE,
    158     _Message_queue_MP_Process_packet
    159   );
    160 #endif
    161 
     149  _Objects_Initialize_information( &_Message_queue_Information);
    162150}
    163151
  • cpukit/rtems/src/partcreate.c

    ra320aedd r453bb4b  
    117117}
    118118
    119 static void _Partition_Manager_initialization(void)
     119static void _Partition_Manager_initialization( void )
    120120{
    121121  _Objects_Initialize_information( &_Partition_Information );
    122 
    123   /*
    124    *  Register the MP Process Packet routine.
    125    */
    126 
    127 #if defined(RTEMS_MULTIPROCESSING)
    128   _MPCI_Register_packet_processor(
    129     MP_PACKET_PARTITION,
    130     _Partition_MP_Process_packet
    131   );
    132 #endif
    133 
    134122}
    135123
  • cpukit/rtems/src/partmp.c

    ra320aedd r453bb4b  
    2424#include <rtems/score/threadimpl.h>
    2525#include <rtems/score/threadqimpl.h>
     26#include <rtems/sysinit.h>
    2627
    2728RTEMS_STATIC_ASSERT(
     
    207208}
    208209
    209 /*
    210  *
    211  *  _Partition_MP_Process_packet
    212  *
    213  */
    214 
    215 void _Partition_MP_Process_packet (
     210static void _Partition_MP_Process_packet(
    216211  rtems_packet_prefix  *the_packet_prefix
    217212)
     
    327322}
    328323
    329 /* end of file */
     324static void _Partition_MP_Initialize( void )
     325{
     326  _MPCI_Register_packet_processor(
     327    MP_PACKET_PARTITION,
     328    _Partition_MP_Process_packet
     329  );
     330}
     331
     332RTEMS_SYSINIT_ITEM(
     333  _Partition_MP_Initialize,
     334  RTEMS_SYSINIT_CLASSIC_PARTITION_MP,
     335  RTEMS_SYSINIT_ORDER_MIDDLE
     336);
  • cpukit/rtems/src/semcreate.c

    ra320aedd r453bb4b  
    268268}
    269269
    270 static void _Semaphore_Manager_initialization(void)
     270static void _Semaphore_Manager_initialization( void )
    271271{
    272272  _Objects_Initialize_information( &_Semaphore_Information );
    273 
    274 #if defined(RTEMS_MULTIPROCESSING)
    275   _MPCI_Register_packet_processor(
    276     MP_PACKET_SEMAPHORE,
    277     _Semaphore_MP_Process_packet
    278   );
    279 #endif
    280273}
    281274
  • cpukit/rtems/src/semmp.c

    ra320aedd r453bb4b  
    2222#include <rtems/rtems/optionsimpl.h>
    2323#include <rtems/rtems/statusimpl.h>
     24#include <rtems/sysinit.h>
    2425
    2526RTEMS_STATIC_ASSERT(
     
    188189}
    189190
    190 void _Semaphore_MP_Process_packet (
     191static void _Semaphore_MP_Process_packet (
    191192  rtems_packet_prefix  *the_packet_prefix
    192193)
     
    296297}
    297298
    298 #if defined(RTEMS_MULTIPROCESSING)
    299299void  _Semaphore_Core_mutex_mp_support (
    300300  Thread_Control *the_thread,
     
    310310   );
    311311}
    312 #endif
    313 
    314 #if defined(RTEMS_MULTIPROCESSING)
     312
    315313void  _Semaphore_Core_semaphore_mp_support (
    316314  Thread_Control *the_thread,
     
    326324   );
    327325}
    328 #endif
    329 /* end of file */
     326
     327static void _Semaphore_MP_Initialize( void )
     328{
     329  _MPCI_Register_packet_processor(
     330    MP_PACKET_SEMAPHORE,
     331    _Semaphore_MP_Process_packet
     332  );
     333}
     334
     335RTEMS_SYSINIT_ITEM(
     336  _Semaphore_MP_Initialize,
     337  RTEMS_SYSINIT_CLASSIC_SEMAPHORE_MP,
     338  RTEMS_SYSINIT_ORDER_MIDDLE
     339);
  • cpukit/rtems/src/signalcatch.c

    ra320aedd r453bb4b  
    9090
    9191#if defined(RTEMS_MULTIPROCESSING)
    92 static void _Signal_Manager_initialization( void )
     92static void _Signal_MP_Initialize( void )
    9393{
    9494  _MPCI_Register_packet_processor(
     
    9999
    100100RTEMS_SYSINIT_ITEM(
    101   _Signal_Manager_initialization,
    102   RTEMS_SYSINIT_CLASSIC_SIGNAL,
     101  _Signal_MP_Initialize,
     102  RTEMS_SYSINIT_CLASSIC_SIGNAL_MP,
    103103  RTEMS_SYSINIT_ORDER_MIDDLE
    104104);
  • cpukit/rtems/src/taskcreate.c

    ra320aedd r453bb4b  
    243243};
    244244
    245 static void _RTEMS_tasks_Manager_initialization(void)
     245static void _RTEMS_tasks_Manager_initialization( void )
    246246{
    247247  _Thread_Initialize_information( &_RTEMS_tasks_Information );
    248248  _User_extensions_Add_API_set( &_RTEMS_tasks_User_extensions );
    249 
    250 #if defined(RTEMS_MULTIPROCESSING)
    251   _MPCI_Register_packet_processor(
    252     MP_PACKET_TASKS,
    253     _RTEMS_tasks_MP_Process_packet
    254   );
    255 #endif
    256249}
    257250
  • cpukit/rtems/src/taskmp.c

    ra320aedd r453bb4b  
    2525#include <rtems/score/threadimpl.h>
    2626#include <rtems/score/threadqimpl.h>
     27#include <rtems/sysinit.h>
    2728
    2829/**
     
    222223 */
    223224
    224 void _RTEMS_tasks_MP_Process_packet (
     225static void _RTEMS_tasks_MP_Process_packet (
    225226  rtems_packet_prefix  *the_packet_prefix
    226227)
     
    313314}
    314315
    315 /*
    316  *  _RTEMS_tasks_MP_Send_object_was_deleted
    317  *
    318  *  This routine is not neededby the Tasks since a task
    319  *  cannot be globally deleted.
    320  *
    321  */
    322 
    323 /*
    324  *  _RTEMS_tasks_MP_Send_extract_proxy
    325  *
    326  *  This routine is not neededby the Tasks since a task
    327  *  cannot be globally deleted.
    328  *
    329  */
    330 
    331 /* end of file */
     316static void _RTEMS_tasks_MP_Initialize( void )
     317{
     318  _MPCI_Register_packet_processor(
     319    MP_PACKET_TASKS,
     320    _RTEMS_tasks_MP_Process_packet
     321  );
     322}
     323
     324RTEMS_SYSINIT_ITEM(
     325  _RTEMS_tasks_MP_Initialize,
     326  RTEMS_SYSINIT_CLASSIC_TASKS_MP,
     327  RTEMS_SYSINIT_ORDER_MIDDLE
     328);
  • testsuites/sptests/spsysinit01/init.c

    ra320aedd r453bb4b  
    8888  CLASSIC_TIMER_PRE,
    8989  CLASSIC_TIMER_POST,
    90   CLASSIC_SIGNAL_PRE,
    91   CLASSIC_SIGNAL_POST,
    92   CLASSIC_EVENT_PRE,
    93   CLASSIC_EVENT_POST,
    9490  CLASSIC_MESSAGE_QUEUE_PRE,
    9591  CLASSIC_MESSAGE_QUEUE_POST,
     
    311307}
    312308
    313 FIRST(RTEMS_SYSINIT_CLASSIC_SIGNAL)
    314 {
    315   /* There is nothing to do in case RTEMS_MULTIPROCESSING is not defined */
    316   next_step(CLASSIC_SIGNAL_PRE);
    317 }
    318 
    319 LAST(RTEMS_SYSINIT_CLASSIC_SIGNAL)
    320 {
    321   next_step(CLASSIC_SIGNAL_POST);
    322 }
    323 
    324 FIRST(RTEMS_SYSINIT_CLASSIC_EVENT)
    325 {
    326   /* There is nothing to do in case RTEMS_MULTIPROCESSING is not defined */
    327   next_step(CLASSIC_EVENT_PRE);
    328 }
    329 
    330 LAST(RTEMS_SYSINIT_CLASSIC_EVENT)
    331 {
    332   next_step(CLASSIC_EVENT_POST);
    333 }
    334 
    335309FIRST(RTEMS_SYSINIT_CLASSIC_MESSAGE_QUEUE)
    336310{
Note: See TracChangeset for help on using the changeset viewer.