Changeset db80f11 in rtems


Ignore:
Timestamp:
Dec 17, 2008, 8:21:40 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
45c4499e
Parents:
07fdc9c2
Message:

2008-12-17 Joel Sherrill <joel.sherrill@…>

  • rtems/Makefile.am, rtems/include/rtems/rtems/attr.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/intr.h, rtems/include/rtems/rtems/message.h, rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h, rtems/src/barrier.c, rtems/src/dpmem.c, rtems/src/msg.c, rtems/src/part.c, rtems/src/ratemon.c, rtems/src/region.c, rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/tasks.c, sapi/src/rtemsapi.c: Convert manager initialization routines to directly pull parameters from configuration table. Eliminate empty routines sportted.
  • rtems/src/intr.c: Removed.
Location:
cpukit
Files:
1 deleted
23 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r07fdc9c2 rdb80f11  
     12008-12-17      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * rtems/Makefile.am, rtems/include/rtems/rtems/attr.h,
     4        rtems/include/rtems/rtems/barrier.h,
     5        rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/intr.h,
     6        rtems/include/rtems/rtems/message.h,
     7        rtems/include/rtems/rtems/part.h,
     8        rtems/include/rtems/rtems/ratemon.h,
     9        rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/sem.h,
     10        rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
     11        rtems/src/barrier.c, rtems/src/dpmem.c, rtems/src/msg.c,
     12        rtems/src/part.c, rtems/src/ratemon.c, rtems/src/region.c,
     13        rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/tasks.c,
     14        sapi/src/rtemsapi.c: Convert manager initialization routines to
     15        directly pull parameters from configuration table. Eliminate empty
     16        routines sportted.
     17        * rtems/src/intr.c: Removed.
     18
    1192008-12-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    220
  • cpukit/rtems/Makefile.am

    r07fdc9c2 rdb80f11  
    7979
    8080## INTR_C_FILES
    81 librtems_a_SOURCES += src/intr.c src/intrbody.c src/intrcatch.c
     81librtems_a_SOURCES += src/intrbody.c src/intrcatch.c
    8282
    8383## BARRIER_C_FILES
  • cpukit/rtems/include/rtems/rtems/attr.h

    r07fdc9c2 rdb80f11  
    183183#endif
    184184
    185 /**
    186  *  @brief _Attributes_Handler_initialization
    187  *
    188  *  This routine performs initialization for this handler.
    189  *
    190  *  NOTE: There is no initialization required in C.  Conditional compilation
    191  *        takes care of this in C.
    192  */
    193 #define _Attributes_Handler_initialization()
    194 
    195185#ifndef __RTEMS_APPLICATION__
    196186#include <rtems/rtems/attr.inl>
  • cpukit/rtems/include/rtems/rtems/barrier.h

    r07fdc9c2 rdb80f11  
    7777 *
    7878 *  This routine performs the initialization necessary for this manager.
    79  *
    80  *  @param[in] maximum_barriers is the total number of barriers allowed to
    81  *             concurrently be active in the system.
    82  */
    83 void _Barrier_Manager_initialization(
    84   uint32_t   maximum_barriers
    85 );
     79 */
     80void _Barrier_Manager_initialization(void);
    8681
    8782/**
  • cpukit/rtems/include/rtems/rtems/dpmem.h

    r07fdc9c2 rdb80f11  
    8282 *  This routine performs the initialization necessary for this manager.
    8383 */
    84 void _Dual_ported_memory_Manager_initialization(
    85   uint32_t   maximum_ports
    86 );
     84void _Dual_ported_memory_Manager_initialization(void);
    8785
    8886/**
  • cpukit/rtems/include/rtems/rtems/intr.h

    r07fdc9c2 rdb80f11  
    5757                 rtems_vector_number
    5858             );
    59 
    60 /**
    61  *  @brief Initializes the Interrupt Manager.
    62  */
    63 void _Interrupt_Manager_initialization( void );
    6459
    6560/**
  • cpukit/rtems/include/rtems/rtems/message.h

    r07fdc9c2 rdb80f11  
    102102 *  This routine performs the initialization necessary for this manager.
    103103 */
    104 void _Message_queue_Manager_initialization(
    105   uint32_t   maximum_message_queues
    106 );
     104void _Message_queue_Manager_initialization(void);
    107105
    108106/**
  • cpukit/rtems/include/rtems/rtems/part.h

    r07fdc9c2 rdb80f11  
    8989 *  This routine performs the initialization necessary for this manager.
    9090 */
    91 void _Partition_Manager_initialization(
    92   uint32_t   maximum_partitions
    93 );
     91void _Partition_Manager_initialization(void);
    9492
    9593/**
  • cpukit/rtems/include/rtems/rtems/ratemon.h

    r07fdc9c2 rdb80f11  
    279279 *  This routine performs the initialization necessary for this manager.
    280280 */
    281 void _Rate_monotonic_Manager_initialization(
    282   uint32_t   maximum_periods
    283 );
     281void _Rate_monotonic_Manager_initialization(void);
    284282
    285283/**
  • cpukit/rtems/include/rtems/rtems/region.h

    r07fdc9c2 rdb80f11  
    8989 *  This routine performs the initialization necessary for this manager.
    9090 */
    91 void _Region_Manager_initialization(
    92   uint32_t   maximum_regions
    93 );
     91void _Region_Manager_initialization(void);
    9492
    9593/**
  • cpukit/rtems/include/rtems/rtems/sem.h

    r07fdc9c2 rdb80f11  
    109109 *  This routine performs the initialization necessary for this manager.
    110110 */
    111 void _Semaphore_Manager_initialization(
    112   uint32_t   maximum_semaphores
    113 );
     111void _Semaphore_Manager_initialization(void);
    114112
    115113/**
  • cpukit/rtems/include/rtems/rtems/tasks.h

    r07fdc9c2 rdb80f11  
    242242 *  This routine initializes all Task Manager related data structures.
    243243 */
    244 void _RTEMS_tasks_Manager_initialization(
    245   uint32_t     maximum_tasks
    246 );
     244void _RTEMS_tasks_Manager_initialization(void);
    247245
    248246/**
  • cpukit/rtems/include/rtems/rtems/timer.h

    r07fdc9c2 rdb80f11  
    149149 *  This routine performs the initialization necessary for this manager.
    150150 */
    151 void _Timer_Manager_initialization(
    152   uint32_t   maximum_timers
    153 );
     151void _Timer_Manager_initialization(void);
    154152
    155153/**
  • cpukit/rtems/src/barrier.c

    r07fdc9c2 rdb80f11  
    1414 *     + release a barrier
    1515 *
    16  *  COPYRIGHT (c) 1989-2006.
     16 *  COPYRIGHT (c) 1989-2008.
    1717 *  On-Line Applications Research Corporation (OAR).
    1818 *
     
    2929
    3030#include <rtems/system.h>
     31#include <rtems/config.h>
    3132#include <rtems/rtems/status.h>
    3233#include <rtems/rtems/support.h>
     
    4041 *  @brief _Barrier_Manager_initialization
    4142 *
    42  *  Input parameters:
    43  *    maximum_barriers - maximum configured barriers
     43 *  Input parameters:   NONE
    4444 *
    4545 *  Output parameters:  NONE
    4646 */
    4747
    48 void _Barrier_Manager_initialization(
    49   uint32_t   maximum_barriers
    50 )
     48void _Barrier_Manager_initialization(void)
    5149{
    5250  _Objects_Initialize_information(
     
    5452    OBJECTS_CLASSIC_API,           /* object API */
    5553    OBJECTS_RTEMS_BARRIERS,        /* object class */
    56     maximum_barriers,              /* maximum objects of this class */
     54    Configuration_RTEMS_API.maximum_barriers,
     55                                   /* maximum objects of this class */
    5756    sizeof( Barrier_Control ),     /* size of this object's control block */
    5857    FALSE,                         /* TRUE if the name is a string */
  • cpukit/rtems/src/dpmem.c

    r07fdc9c2 rdb80f11  
    22 *  Dual Port Memory Manager
    33 *
    4  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2008.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1717
    1818#include <rtems/system.h>
     19#include <rtems/config.h>
    1920#include <rtems/rtems/status.h>
    2021#include <rtems/rtems/support.h>
     
    3132 *  data structures.
    3233 *
    33  *  Input parameters:
    34  *    maximum_ports - number of ports to initialize
     34 *  Input parameters:   NONE
    3535 *
    3636 *  Output parameters:  NONE
    3737 */
    3838
    39 void _Dual_ported_memory_Manager_initialization(
    40   uint32_t   maximum_ports
    41 )
     39void _Dual_ported_memory_Manager_initialization(void)
    4240{
    4341  _Objects_Initialize_information(
     
    4543    OBJECTS_CLASSIC_API,              /* object API */
    4644    OBJECTS_RTEMS_PORTS,              /* object class */
    47     maximum_ports,                    /* maximum objects of this class */
     45    Configuration_RTEMS_API.maximum_ports,
     46                                  /* maximum objects of this class */
    4847    sizeof( Dual_ported_memory_Control ),
    4948                                  /* size of this object's control block */
  • cpukit/rtems/src/msg.c

    r07fdc9c2 rdb80f11  
    33 *
    44 *
    5  *  COPYRIGHT (c) 1989-1999.
     5 *  COPYRIGHT (c) 1989-2008.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    1818
    1919#include <rtems/system.h>
     20#include <rtems/config.h>
    2021#include <rtems/score/sysstate.h>
    2122#include <rtems/score/chain.h>
     
    4243 *  data structures.
    4344 *
    44  *  Input parameters:
    45  *    maximum_message_queues - number of message queues to initialize
     45 *  Input parameters:   NONE
    4646 *
    4747 *  Output parameters:  NONE
    4848 */
    4949
    50 void _Message_queue_Manager_initialization(
    51   uint32_t   maximum_message_queues
    52 )
     50void _Message_queue_Manager_initialization(void)
    5351{
    5452  _Objects_Initialize_information(
     
    5654    OBJECTS_CLASSIC_API,          /* object API */
    5755    OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
    58     maximum_message_queues,       /* maximum objects of this class */
     56    Configuration_RTEMS_API.maximum_message_queues,
     57                                  /* maximum objects of this class */
    5958    sizeof( Message_queue_Control ),
    60                                /* size of this object's control block */
    61     FALSE,                     /* TRUE if names of this object are strings */
    62     RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of each object's name */
     59                                  /* size of this object's control block */
     60    FALSE,                        /* TRUE if names of this object are strings */
     61    RTEMS_MAXIMUM_NAME_LENGTH     /* maximum length of each object's name */
    6362#if defined(RTEMS_MULTIPROCESSING)
    6463    ,
    65     TRUE,                      /* TRUE if this is a global object class */
    66     _Message_queue_MP_Send_extract_proxy  /* Proxy extraction support callout */
     64    TRUE,                         /* TRUE if this is a global object class */
     65    _Message_queue_MP_Send_extract_proxy
     66                                  /* Proxy extraction support callout */
    6767#endif
    6868  );
  • cpukit/rtems/src/part.c

    r07fdc9c2 rdb80f11  
    22 *  Partition Manager
    33 *
    4  *
    5  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2008.
    65 *  On-Line Applications Research Corporation (OAR).
    76 *
     
    1817
    1918#include <rtems/system.h>
     19#include <rtems/config.h>
    2020#include <rtems/rtems/status.h>
    2121#include <rtems/rtems/support.h>
     
    3333 *  data structures.
    3434 *
    35  *  Input parameters:
    36  *    maximum_partitions - number of partitions to initialize
     35 *  Input parameters:   NONE
    3736 *
    3837 *  Output parameters:  NONE
    3938 */
    4039
    41 void _Partition_Manager_initialization(
    42   uint32_t   maximum_partitions
    43 )
     40void _Partition_Manager_initialization(void)
    4441{
    4542  _Objects_Initialize_information(
     
    4744    OBJECTS_CLASSIC_API,         /* object API */
    4845    OBJECTS_RTEMS_PARTITIONS,    /* object class */
    49     maximum_partitions,          /* maximum objects of this class */
     46    Configuration_RTEMS_API.maximum_partitions,
     47                                 /* maximum objects of this class */
    5048    sizeof( Partition_Control ), /* size of this object's control block */
    5149    FALSE,                       /* TRUE if the name is a string */
  • cpukit/rtems/src/ratemon.c

    r07fdc9c2 rdb80f11  
    33 *
    44 *
    5  *  COPYRIGHT (c) 1989-1999.
     5 *  COPYRIGHT (c) 1989-2008.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    1818
    1919#include <rtems/system.h>
     20#include <rtems/config.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
     
    3233 *  data structures.
    3334 *
    34  *  Input parameters:
    35  *    maximum_periods - number of periods timers to initialize
     35 *  Input parameters:   NONE
    3636 *
    3737 *  Output parameters:  NONE
     
    4141 */
    4242
    43 void _Rate_monotonic_Manager_initialization(
    44   uint32_t   maximum_periods
    45 )
     43void _Rate_monotonic_Manager_initialization(void)
    4644{
    4745  _Objects_Initialize_information(
    48     &_Rate_monotonic_Information,     /* object information table */
    49     OBJECTS_CLASSIC_API,              /* object API */
    50     OBJECTS_RTEMS_PERIODS,            /* object class */
    51     maximum_periods,                  /* maximum objects of this class */
    52     sizeof( Rate_monotonic_Control ), /* size of this object's control block */
    53     FALSE,                            /* TRUE if the name is a string */
    54     RTEMS_MAXIMUM_NAME_LENGTH         /* maximum length of an object name */
     46    &_Rate_monotonic_Information,    /* object information table */
     47    OBJECTS_CLASSIC_API,             /* object API */
     48    OBJECTS_RTEMS_PERIODS,           /* object class */
     49    Configuration_RTEMS_API.maximum_periods,
     50                                     /* maximum objects of this class */
     51    sizeof( Rate_monotonic_Control ),/* size of this object's control block */
     52    FALSE,                           /* TRUE if the name is a string */
     53    RTEMS_MAXIMUM_NAME_LENGTH        /* maximum length of an object name */
    5554#if defined(RTEMS_MULTIPROCESSING)
    5655    ,
    57     FALSE,                     /* TRUE if this is a global object class */
    58     NULL                       /* Proxy extraction support callout */
     56    FALSE,                           /* TRUE if this is a global object class */
     57    NULL                             /* Proxy extraction support callout */
    5958#endif
    6059  );
  • cpukit/rtems/src/region.c

    r07fdc9c2 rdb80f11  
    33 *
    44 *
    5  *  COPYRIGHT (c) 1989-1999.
     5 *  COPYRIGHT (c) 1989-2008.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    1818
    1919#include <rtems/system.h>
     20#include <rtems/config.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
     
    3334 *  This routine initializes all region manager related data structures.
    3435 *
    35  *  Input parameters:
    36  *    maximum_regions - number of regions to initialize
     36 *  Input parameters:   NONE
    3737 *
    3838 *  Output parameters:  NONE
    3939 */
    4040
    41 void _Region_Manager_initialization(
    42   uint32_t   maximum_regions
    43 )
     41void _Region_Manager_initialization(void)
    4442{
    4543  _Objects_Initialize_information(
     
    4745    OBJECTS_CLASSIC_API,       /* object API */
    4846    OBJECTS_RTEMS_REGIONS,     /* object class */
    49     maximum_regions,           /* maximum objects of this class */
     47    Configuration_RTEMS_API.maximum_regions,
     48                               /* maximum objects of this class */
    5049    sizeof( Region_Control ),  /* size of this object's control block */
    5150    FALSE,                     /* TRUE if the name is a string */
  • cpukit/rtems/src/rtemstimer.c

    r07fdc9c2 rdb80f11  
    33 *
    44 *
    5  *  COPYRIGHT (c) 1989-2002.
     5 *  COPYRIGHT (c) 1989-2008.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    1818
    1919#include <rtems/system.h>
     20#include <rtems/config.h>
    2021#include <rtems/rtems/status.h>
    2122#include <rtems/rtems/support.h>
     
    3233 *  This routine initializes all timer manager related data structures.
    3334 *
    34  *  Input parameters:
    35  *    maximum_timers - number of timers to initialize
     35 *  Input parameters: NONE
    3636 *
    3737 *  Output parameters:  NONE
    3838 */
    3939
    40 void _Timer_Manager_initialization(
    41   uint32_t   maximum_timers
    42 )
     40void _Timer_Manager_initialization(void)
    4341{
    4442  _Objects_Initialize_information(
     
    4644    OBJECTS_CLASSIC_API,       /* object API */
    4745    OBJECTS_RTEMS_TIMERS,      /* object class */
    48     maximum_timers,            /* maximum objects of this class */
     46    Configuration_RTEMS_API.maximum_timers ,
     47                               /* maximum objects of this class */
    4948    sizeof( Timer_Control ),   /* size of this object's control block */
    5049    FALSE,                     /* TRUE if the name is a string */
  • cpukit/rtems/src/sem.c

    r07fdc9c2 rdb80f11  
    1616 *     + release a semaphore
    1717 *
    18  *  COPYRIGHT (c) 1989-1999.
     18 *  COPYRIGHT (c) 1989-2008.
    1919 *  On-Line Applications Research Corporation (OAR).
    2020 *
     
    3131
    3232#include <rtems/system.h>
     33#include <rtems/config.h>
    3334#include <rtems/rtems/status.h>
    3435#include <rtems/rtems/support.h>
     
    5657 *  This routine initializes all semaphore manager related data structures.
    5758 *
    58  *  Input parameters:
    59  *    maximum_semaphores - maximum configured semaphores
     59 *  Input parameters:   NONE
    6060 *
    6161 *  Output parameters:  NONE
    6262 */
    6363
    64 void _Semaphore_Manager_initialization(
    65   uint32_t   maximum_semaphores
    66 )
     64void _Semaphore_Manager_initialization(void)
    6765{
    6866  _Objects_Initialize_information(
     
    7068    OBJECTS_CLASSIC_API,         /* object API */
    7169    OBJECTS_RTEMS_SEMAPHORES,    /* object class */
    72     maximum_semaphores,          /* maximum objects of this class */
     70     Configuration_RTEMS_API.maximum_semaphores,
     71                                 /* maximum objects of this class */
    7372    sizeof( Semaphore_Control ), /* size of this object's control block */
    7473    FALSE,                       /* TRUE if the name is a string */
  • cpukit/rtems/src/tasks.c

    r07fdc9c2 rdb80f11  
    22 *  RTEMS Task Manager -- Initialize Manager
    33 *
    4  *  COPYRIGHT (c) 1989-2007.
     4 *  COPYRIGHT (c) 1989-2008.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    242242 *  This routine initializes all Task Manager related data structures.
    243243 *
    244  *  Input parameters:
    245  *    maximum_tasks       - number of tasks to initialize
     244 *  Input parameters: NONE
    246245 *
    247246 *  Output parameters:  NONE
    248247 */
    249248
    250 void _RTEMS_tasks_Manager_initialization(
    251   uint32_t                          maximum_tasks
    252 )
    253 {
    254 
     249void _RTEMS_tasks_Manager_initialization(void)
     250{
    255251  _Objects_Initialize_information(
    256252    &_RTEMS_tasks_Information, /* object information table */
    257253    OBJECTS_CLASSIC_API,       /* object API */
    258254    OBJECTS_RTEMS_TASKS,       /* object class */
    259     maximum_tasks,             /* maximum objects of this class */
     255    Configuration_RTEMS_API.maximum_tasks,
     256                               /* maximum objects of this class */
    260257    sizeof( Thread_Control ),  /* size of this object's control block */
    261258    FALSE,                     /* TRUE if the name is a string */
  • cpukit/sapi/src/rtemsapi.c

    r07fdc9c2 rdb80f11  
    5757void _RTEMS_API_Initialize(void)
    5858{
    59   rtems_api_configuration_table *api;
    60 
    6159  /*
    6260   * Install our API Object Management Table and initialize the
    6361   * various managers.
    6462   */
    65   api = &Configuration_RTEMS_API;
    66 
    6763  _Objects_Information_table[OBJECTS_CLASSIC_API] = _RTEMS_Objects;
    6864
    69   _Attributes_Handler_initialization();
     65  #if defined(RTEMS_MULTIPROCESSING)
     66    _Multiprocessing_Manager_initialization();
     67  #endif
    7068
    71   _Interrupt_Manager_initialization();
    72 
    73 #if defined(RTEMS_MULTIPROCESSING)
    74   _Multiprocessing_Manager_initialization();
    75 #endif
    76 
    77   _RTEMS_tasks_Manager_initialization( api->maximum_tasks );
    78 
    79   _Timer_Manager_initialization( api->maximum_timers );
    80 
     69  _RTEMS_tasks_Manager_initialization();
     70  _Timer_Manager_initialization();
    8171  _Signal_Manager_initialization();
    82 
    8372  _Event_Manager_initialization();
    84 
    85   _Message_queue_Manager_initialization( api->maximum_message_queues );
    86 
    87   _Semaphore_Manager_initialization( api->maximum_semaphores );
    88 
    89   _Partition_Manager_initialization( api->maximum_partitions );
    90 
    91   _Region_Manager_initialization( api->maximum_regions );
    92 
    93   _Dual_ported_memory_Manager_initialization( api->maximum_ports);
    94 
    95   _Rate_monotonic_Manager_initialization( api->maximum_periods );
    96 
    97   _Barrier_Manager_initialization( api->maximum_barriers );
     73  _Message_queue_Manager_initialization();
     74  _Semaphore_Manager_initialization();
     75  _Partition_Manager_initialization();
     76  _Region_Manager_initialization();
     77  _Dual_ported_memory_Manager_initialization();
     78  _Rate_monotonic_Manager_initialization();
     79  _Barrier_Manager_initialization();
    9880}
    9981
Note: See TracChangeset for help on using the changeset viewer.