Changeset 309e2f6 in rtems


Ignore:
Timestamp:
Dec 17, 2008, 9:23:37 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
7252caf2
Parents:
45c4499e
Message:

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

  • posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/timer.h, posix/src/cond.c, posix/src/key.c, posix/src/mqueue.c, posix/src/mutex.c, posix/src/pbarrier.c, posix/src/prwlock.c, posix/src/psignal.c, posix/src/pspin.c, posix/src/pthread.c, posix/src/pthreadinitthreads.c, posix/src/ptimer.c, posix/src/semaphore.c, sapi/src/posixapi.c: Convert POSIX manager initialization routines to directly pull parameters from configuration table.
Location:
cpukit
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r45c4499e r309e2f6  
     12008-12-17      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * posix/include/rtems/posix/barrier.h,
     4        posix/include/rtems/posix/cond.h, posix/include/rtems/posix/key.h,
     5        posix/include/rtems/posix/mqueue.h,
     6        posix/include/rtems/posix/mutex.h,
     7        posix/include/rtems/posix/psignal.h,
     8        posix/include/rtems/posix/pthread.h,
     9        posix/include/rtems/posix/ptimer.h,
     10        posix/include/rtems/posix/rwlock.h,
     11        posix/include/rtems/posix/semaphore.h,
     12        posix/include/rtems/posix/spinlock.h,
     13        posix/include/rtems/posix/timer.h, posix/src/cond.c, posix/src/key.c,
     14        posix/src/mqueue.c, posix/src/mutex.c, posix/src/pbarrier.c,
     15        posix/src/prwlock.c, posix/src/psignal.c, posix/src/pspin.c,
     16        posix/src/pthread.c, posix/src/pthreadinitthreads.c,
     17        posix/src/ptimer.c, posix/src/semaphore.c, sapi/src/posixapi.c:
     18        Convert POSIX manager initialization routines to directly pull
     19        parameters from configuration table.
     20
    1212008-12-17      Joel Sherrill <joel.sherrill@oarcorp.com>
    222
  • cpukit/posix/include/rtems/posix/barrier.h

    r45c4499e r309e2f6  
    1313 *     + wait for a barrier
    1414 *
    15  *  COPYRIGHT (c) 1989-2006.
     15 *  COPYRIGHT (c) 1989-2008.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    6060 */
    6161
    62 void _POSIX_Barrier_Manager_initialization(
    63   uint32_t   maximum_barriers
    64 );
     62void _POSIX_Barrier_Manager_initialization(void);
    6563
    6664/**
  • cpukit/posix/include/rtems/posix/cond.h

    r45c4499e r309e2f6  
    77 *  POSIX condition variables.
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2008.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    6666 */
    6767
    68 void _POSIX_Condition_variables_Manager_initialization(
    69   uint32_t   maximum_condition_variables
    70 );
     68void _POSIX_Condition_variables_Manager_initialization(void);
    7169
    7270/*
  • cpukit/posix/include/rtems/posix/key.h

    r45c4499e r309e2f6  
    88 *  POSIX key.
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2008.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    5454 */
    5555
    56 void _POSIX_Key_Manager_initialization(
    57   uint32_t   maximum_keys
    58 );
     56void _POSIX_Key_Manager_initialization(void);
    5957
    6058/*
  • cpukit/posix/include/rtems/posix/mqueue.h

    r45c4499e r309e2f6  
    6666 */
    6767
    68 void _POSIX_Message_queue_Manager_initialization(
    69   uint32_t   maximum_message_queues
    70 );
     68void _POSIX_Message_queue_Manager_initialization(void);
    7169
    7270/*
  • cpukit/posix/include/rtems/posix/mutex.h

    r45c4499e r309e2f6  
    77 *  POSIX mutex's.
    88 *
    9  *  COPYRIGHT (c) 1989-2007.
     9 *  COPYRIGHT (c) 1989-2008.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    5858 */
    5959
    60 void _POSIX_Mutex_Manager_initialization(
    61   uint32_t   maximum_mutexes
    62 );
     60void _POSIX_Mutex_Manager_initialization(void);
    6361
    6462/*
  • cpukit/posix/include/rtems/posix/psignal.h

    r45c4499e r309e2f6  
    44
    55/*
    6  *  COPYRIGHT (c) 1989-2007.
     6 *  COPYRIGHT (c) 1989-2008.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    8383 */
    8484
    85 void _POSIX_signals_Manager_Initialization(
    86   int  maximum_queued_signals
    87 );
     85void _POSIX_signals_Manager_Initialization(void);
    8886
    8987void _POSIX_signals_Post_switch_extension(
  • cpukit/posix/include/rtems/posix/pthread.h

    r45c4499e r309e2f6  
    88 *  POSIX threads.
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2008.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    4040POSIX_EXTERN Objects_Information  _POSIX_Threads_Information;
    4141
    42 /*
    43  *  These are used to manage the user initialization threads.
    44  */
    45 
    46 POSIX_EXTERN posix_initialization_threads_table
    47                    *_POSIX_Threads_User_initialization_threads;
    48 POSIX_EXTERN uint32_t     _POSIX_Threads_Number_of_initialization_threads;
    49 
    5042extern const pthread_attr_t _POSIX_Threads_Default_attributes;
    5143
     
    6759 */
    6860
    69 void _POSIX_Threads_Manager_initialization(
    70   uint32_t                            maximum_pthreads,
    71   uint32_t                            number_of_initialization_threads,
    72   posix_initialization_threads_table *user_threads
    73 );
     61void _POSIX_Threads_Manager_initialization(void);
    7462
    7563/*
  • cpukit/posix/include/rtems/posix/ptimer.h

    r45c4499e r309e2f6  
    3535 */
    3636
    37 void _POSIX_Timer_Manager_initialization ( int max_timers );
     37void _POSIX_Timer_Manager_initialization(void);
    3838
    3939/*
  • cpukit/posix/include/rtems/posix/rwlock.h

    r45c4499e r309e2f6  
    1313 *     + wait for a RWLock
    1414 *
    15  *  COPYRIGHT (c) 1989-2006.
     15 *  COPYRIGHT (c) 1989-2008.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    6060 */
    6161
    62 void _POSIX_RWLock_Manager_initialization(
    63   uint32_t   maximum_rwlocks
    64 );
     62void _POSIX_RWLock_Manager_initialization(void);
    6563
    6664/**
  • cpukit/posix/include/rtems/posix/semaphore.h

    r45c4499e r309e2f6  
    5858 */
    5959
    60 void _POSIX_Semaphore_Manager_initialization(
    61   uint32_t   maximum_semaphorees
    62 );
     60void _POSIX_Semaphore_Manager_initialization(void);
    6361
    6462/*
  • cpukit/posix/include/rtems/posix/spinlock.h

    r45c4499e r309e2f6  
    1313 *     + wait for a spinlock
    1414 *
    15  *  COPYRIGHT (c) 1989-2006.
     15 *  COPYRIGHT (c) 1989-2008.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    6060 */
    6161
    62 void _POSIX_Spinlock_Manager_initialization(
    63   uint32_t   maximum_spinlocks
    64 );
     62void _POSIX_Spinlock_Manager_initialization(void);
    6563
    6664/**
  • cpukit/posix/include/rtems/posix/timer.h

    r45c4499e r309e2f6  
    7171 *  This routine performs the initialization necessary for this manager.
    7272 */
    73 void _POSIX_Timer_Manager_initialization ( int max_timers );
     73void _POSIX_Timer_Manager_initialization(void);
    7474
    7575/*
  • cpukit/posix/src/cond.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1919
    2020#include <rtems/system.h>
     21#include <rtems/config.h>
    2122#include <rtems/score/object.h>
    2223#include <rtems/score/states.h>
     
    3334 *  structures.
    3435 *
    35  *  Input parameters:
    36  *    maximum_condition_variables - maximum configured condition_variables
     36 *  Input parameters:   NONE
    3737 *
    3838 *  Output parameters:  NONE
    3939 */
    4040
    41 void _POSIX_Condition_variables_Manager_initialization(
    42   uint32_t   maximum_condition_variables
    43 )
     41void _POSIX_Condition_variables_Manager_initialization(void)
    4442{
    4543  _Objects_Initialize_information(
     
    4745    OBJECTS_POSIX_API,                       /* object API */
    4846    OBJECTS_POSIX_CONDITION_VARIABLES,       /* object class */
    49     maximum_condition_variables,             /* maximum objects of this class */
     47    Configuration_POSIX_API.maximum_condition_variables,
     48                                /* maximum objects of this class */
    5049    sizeof( POSIX_Condition_variables_Control ),
    5150                                /* size of this object's control block */
  • cpukit/posix/src/key.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121
    2222#include <rtems/system.h>
     23#include <rtems/config.h>
    2324#include <rtems/score/thread.h>
    2425#include <rtems/score/wkspace.h>
     
    3132 *
    3233 *  This routine performs the initialization necessary for this manager.
     34 *
     35 *  Input parameters:   NONE
     36 *
     37 *  Output parameters:  NONE
    3338 */
    3439
    35 void _POSIX_Key_Manager_initialization(
    36   uint32_t   maximum_keys
    37 )
     40void _POSIX_Key_Manager_initialization(void)
    3841{
    3942  _Objects_Initialize_information(
     
    4144    OBJECTS_POSIX_API,          /* object API */
    4245    OBJECTS_POSIX_KEYS,         /* object class */
    43     maximum_keys,               /* maximum objects of this class */
     46    Configuration_POSIX_API.maximum_keys,
     47                                /* maximum objects of this class */
    4448    sizeof( POSIX_Keys_Control ),
    4549                                /* size of this object's control block */
  • cpukit/posix/src/mqueue.c

    r45c4499e r309e2f6  
    1212 *         time.
    1313 *
    14  *  COPYRIGHT (c) 1989-2007.
     14 *  COPYRIGHT (c) 1989-2008.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    3535
    3636#include <rtems/system.h>
     37#include <rtems/config.h>
    3738#include <rtems/score/watchdog.h>
    3839#include <rtems/seterr.h>
     
    4647 *  This routine initializes all message_queue manager related data structures.
    4748 *
    48  *  Input parameters:
    49  *    maximum_message_queues - maximum configured message_queues
     49 *  Input parameters:   NONE
    5050 *
    5151 *  Output parameters:  NONE
    5252 */
    5353
    54 void _POSIX_Message_queue_Manager_initialization(
    55   uint32_t   maximum_message_queues
    56 )
     54void _POSIX_Message_queue_Manager_initialization(void)
    5755{
    5856  _Objects_Initialize_information(
     
    6058    OBJECTS_POSIX_API,                 /* object API */
    6159    OBJECTS_POSIX_MESSAGE_QUEUES,      /* object class */
    62     maximum_message_queues,            /* maximum objects of this class */
     60    Configuration_POSIX_API.maximum_message_queues,
     61                                /* maximum objects of this class */
    6362    sizeof( POSIX_Message_queue_Control ),
    6463                                /* size of this object's control block */
     
    7574    OBJECTS_POSIX_API,
    7675    OBJECTS_POSIX_MESSAGE_QUEUE_FDS,
    77     maximum_message_queues,
     76    Configuration_POSIX_API.maximum_message_queues,
    7877    sizeof( POSIX_Message_queue_Control_fd ),
    7978                                /* size of this object's control block */
  • cpukit/posix/src/mutex.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1919
    2020#include <rtems/system.h>
     21#include <rtems/config.h>
    2122#include <rtems/score/coremutex.h>
    2223#include <rtems/score/watchdog.h>
     
    4041 */
    4142
    42 void _POSIX_Mutex_Manager_initialization(
    43   uint32_t   maximum_mutexes
    44 )
     43void _POSIX_Mutex_Manager_initialization(void)
    4544{
    4645  pthread_mutexattr_t *default_attr = &_POSIX_Mutex_Default_attributes;
     
    6362    OBJECTS_POSIX_API,          /* object API */
    6463    OBJECTS_POSIX_MUTEXES,      /* object class */
    65     maximum_mutexes,            /* maximum objects of this class */
     64    Configuration_POSIX_API.maximum_mutexes,
     65                                /* maximum objects of this class */
    6666    sizeof( POSIX_Mutex_Control ),
    6767                                /* size of this object's control block */
  • cpukit/posix/src/pbarrier.c

    r45c4499e r309e2f6  
    1414 *     + release a barrier
    1515 *
    16  *  COPYRIGHT (c) 1989-2006.
     16 *  COPYRIGHT (c) 1989-2008.
    1717 *  On-Line Applications Research Corporation (OAR).
    1818 *
     
    3131
    3232#include <rtems/system.h>
     33#include <rtems/config.h>
    3334#include <rtems/posix/barrier.h>
    3435
    3536/**
    3637 *  @brief _POSIX_Barrier_Manager_initialization
    37  *
    38  *  Input parameters:
    39  *    maximum_barriers - maximum configured barriers
    40  *
    41  *  Output parameters:  NONE
    4238 */
    4339
    44 void _POSIX_Barrier_Manager_initialization(
    45   uint32_t   maximum_barriers
    46 )
     40void _POSIX_Barrier_Manager_initialization(void)
    4741{
    4842  _Objects_Initialize_information(
     
    5044    OBJECTS_POSIX_API,              /* object API */
    5145    OBJECTS_POSIX_BARRIERS,         /* object class */
    52     maximum_barriers,               /* maximum objects of this class */
     46    Configuration_POSIX_API.maximum_barriers,
     47                                    /* maximum objects of this class */
    5348    sizeof( POSIX_Barrier_Control ),/* size of this object's control block */
    5449    TRUE,                           /* TRUE if the name is a string */
    55     _POSIX_PATH_MAX             /* maximum length of each object's name */
     50    _POSIX_PATH_MAX                 /* maximum length of each object's name */
    5651#if defined(RTEMS_MULTIPROCESSING)
    5752    ,
  • cpukit/posix/src/prwlock.c

    r45c4499e r309e2f6  
    22 *  RWLock Manager -- Initialization
    33 *
    4  *  COPYRIGHT (c) 1989-2006.
     4 *  COPYRIGHT (c) 1989-2008.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1919
    2020#include <rtems/system.h>
     21#include <rtems/config.h>
    2122#include <rtems/posix/rwlock.h>
    2223
    2324/**
    2425 *  @brief _POSIX_RWLock_Manager_initialization
    25  *
    26  *  Input parameters:
    27  *    maximum_rwlocks - maximum configured rwlocks
    28  *
    29  *  Output parameters:  NONE
    3026 */
    3127
    32 void _POSIX_RWLock_Manager_initialization(
    33   uint32_t   maximum_rwlocks
    34 )
     28void _POSIX_RWLock_Manager_initialization(void)
    3529{
    3630  _Objects_Initialize_information(
     
    3832    OBJECTS_POSIX_API,              /* object API */
    3933    OBJECTS_POSIX_SPINLOCKS,        /* object class */
    40     maximum_rwlocks,                /* maximum objects of this class */
     34    Configuration_POSIX_API.maximum_rwlocks,
     35                                    /* maximum objects of this class */
    4136    sizeof( POSIX_RWLock_Control ), /* size of this object's control block */
    4237    TRUE,                           /* TRUE if the name is a string */
    43     _POSIX_PATH_MAX             /* maximum length of each object's name */
     38    _POSIX_PATH_MAX                 /* maximum length of each object's name */
    4439#if defined(RTEMS_MULTIPROCESSING)
    4540    ,
  • cpukit/posix/src/psignal.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222
    2323#include <rtems/system.h>
     24#include <rtems/config.h>
    2425#include <rtems/score/isr.h>
    2526#include <rtems/score/thread.h>
     
    160161 */
    161162
    162 void _POSIX_signals_Manager_Initialization(
    163   int  maximum_queued_signals
    164 )
     163void _POSIX_signals_Manager_Initialization(void)
    165164{
    166165  uint32_t   signo;
     166  uint32_t   maximum_queued_signals;
     167
     168  maximum_queued_signals = Configuration_POSIX_API.maximum_queued_signals;
    167169
    168170  /*
  • cpukit/posix/src/pspin.c

    r45c4499e r309e2f6  
    1414 *     + release a spinlock
    1515 *
    16  *  COPYRIGHT (c) 1989-2006.
     16 *  COPYRIGHT (c) 1989-2008.
    1717 *  On-Line Applications Research Corporation (OAR).
    1818 *
     
    3131
    3232#include <rtems/system.h>
     33#include <rtems/config.h>
    3334#include <rtems/posix/spinlock.h>
    3435
    3536/**
    3637 *  @brief _POSIX_Spinlock_Manager_initialization
    37  *
    38  *  Input parameters:
    39  *    maximum_spinlocks - maximum configured spinlocks
    40  *
    41  *  Output parameters:  NONE
    4238 */
    4339
    44 void _POSIX_Spinlock_Manager_initialization(
    45   uint32_t   maximum_spinlocks
    46 )
     40void _POSIX_Spinlock_Manager_initialization(void)
    4741{
    4842  _Objects_Initialize_information(
    4943    &_POSIX_Spinlock_Information,    /* object information table */
    50     OBJECTS_POSIX_API,              /* object API */
     44    OBJECTS_POSIX_API,               /* object API */
    5145    OBJECTS_POSIX_SPINLOCKS,         /* object class */
    52     maximum_spinlocks,               /* maximum objects of this class */
     46    Configuration_POSIX_API.maximum_spinlocks,
     47                                     /* maximum objects of this class */
    5348    sizeof( POSIX_Spinlock_Control ),/* size of this object's control block */
    54     TRUE,                           /* TRUE if the name is a string */
    55     _POSIX_PATH_MAX             /* maximum length of each object's name */
     49    TRUE,                            /* TRUE if the name is a string */
     50    _POSIX_PATH_MAX                  /* maximum length of each object's name */
    5651#if defined(RTEMS_MULTIPROCESSING)
    5752    ,
    58     FALSE,                         /* TRUE if this is a global object class */
    59     NULL                           /* Proxy extraction support callout */
     53    FALSE,                           /* TRUE if this is a global object class */
     54    NULL                             /* Proxy extraction support callout */
    6055#endif
    6156  );
  • cpukit/posix/src/pthread.c

    r45c4499e r309e2f6  
    2020
    2121#include <rtems/system.h>
     22#include <rtems/config.h>
    2223#include <rtems/score/apiext.h>
    2324#include <rtems/score/stack.h>
     
    310311 *  This routine initializes all threads manager related data structures.
    311312 *
    312  *  Input parameters:
    313  *    maximum_pthreads - maximum configured pthreads
     313 *  Input parameters:   NONE
    314314 *
    315315 *  Output parameters:  NONE
    316316 */
    317317
    318 void _POSIX_Threads_Manager_initialization(
    319   uint32_t                            maximum_pthreads,
    320   uint32_t                            number_of_initialization_threads,
    321   posix_initialization_threads_table *user_threads
    322 
    323 )
    324 {
    325   _POSIX_Threads_Number_of_initialization_threads =
    326                                            number_of_initialization_threads;
    327   _POSIX_Threads_User_initialization_threads = user_threads;
    328 
     318void _POSIX_Threads_Manager_initialization(void)
     319{
    329320  /*
    330321   *  There may not be any POSIX initialization threads configured.
     
    340331    OBJECTS_POSIX_API,           /* object API */
    341332    OBJECTS_POSIX_THREADS,       /* object class */
    342     maximum_pthreads,            /* maximum objects of this class */
     333    Configuration_POSIX_API.maximum_threads,
     334                                 /* maximum objects of this class */
    343335    sizeof( Thread_Control ),
    344336                                 /* size of this object's control block */
    345337    TRUE,                        /* TRUE if names for this object are strings */
    346     _POSIX_PATH_MAX             /* maximum length of each object's name */
     338    _POSIX_PATH_MAX              /* maximum length of each object's name */
    347339#if defined(RTEMS_MULTIPROCESSING)
    348340    ,
  • cpukit/posix/src/pthreadinitthreads.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020
    2121#include <rtems/system.h>
     22#include <rtems/config.h>
    2223#include <rtems/score/apiext.h>
    2324#include <rtems/score/stack.h>
     
    4546 */
    4647
    47 void _POSIX_Threads_Initialize_user_threads_body( void )
     48void _POSIX_Threads_Initialize_user_threads_body(void)
    4849{
    4950  int                                 status;
     
    5455  pthread_attr_t                      attr;
    5556
    56   user_threads = _POSIX_Threads_User_initialization_threads;
    57   maximum      = _POSIX_Threads_Number_of_initialization_threads;
     57  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
     58  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
    5859
    5960  if ( !user_threads || maximum == 0 )
  • cpukit/posix/src/ptimer.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1919
    2020#include <rtems/system.h>
     21#include <rtems/config.h>
    2122#include <rtems/score/isr.h>
    2223#include <rtems/score/thread.h>
     
    4546 * _POSIX_Timer_Manager_initialization
    4647 *
    47  *  Description: Initialize the internal structure in which the data of all
    48  *               the timers are stored
     48 *  Description:
     49 *
     50 *  Initialize the internal structure in which the data of all
     51 *  the timers are stored
    4952 */
    5053
    51 void _POSIX_Timer_Manager_initialization ( int maximum_timers )
     54void _POSIX_Timer_Manager_initialization(void)
    5255{
    5356  _Objects_Initialize_information(
     
    5558    OBJECTS_POSIX_API,          /* object API */
    5659    OBJECTS_POSIX_TIMERS,       /* object class */
    57     maximum_timers,             /* maximum objects of this class */
     60    Configuration_POSIX_API.maximum_timers,
     61                                /* maximum objects of this class */
    5862    sizeof( POSIX_Timer_Control ),
    5963                                /* size of this object's control block */
  • cpukit/posix/src/semaphore.c

    r45c4499e r309e2f6  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2008.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323
    2424#include <rtems/system.h>
     25#include <rtems/config.h>
    2526#include <rtems/score/object.h>
    2627#include <rtems/posix/semaphore.h>
     
    3435 *  This routine initializes all semaphore manager related data structures.
    3536 *
    36  *  Input parameters:
    37  *    maximum_semaphores - maximum configured semaphores
     37 *  Input parameters:   NONE
    3838 *
    3939 *  Output parameters:  NONE
    4040 */
    4141
    42 void _POSIX_Semaphore_Manager_initialization(
    43   uint32_t   maximum_semaphores
    44 )
     42void _POSIX_Semaphore_Manager_initialization(void)
    4543{
    4644  _Objects_Initialize_information(
    4745    &_POSIX_Semaphore_Information, /* object information table */
    48     OBJECTS_POSIX_API,             /* object API */
    49     OBJECTS_POSIX_SEMAPHORES,      /* object class */
    50     maximum_semaphores             /* maximum objects of this class */,
     46    OBJECTS_POSIX_API,          /* object API */
     47    OBJECTS_POSIX_SEMAPHORES,   /* object class */
     48    Configuration_POSIX_API.maximum_semaphores,
     49                                /* maximum objects of this class */
    5150    sizeof( POSIX_Semaphore_Control ),
    5251                                /* size of this object's control block */
  • cpukit/sapi/src/posixapi.c

    r45c4499e r309e2f6  
    7575  _Objects_Information_table[OBJECTS_POSIX_API] = _POSIX_Objects;
    7676
    77   _POSIX_signals_Manager_Initialization( api->maximum_queued_signals );
    78 
    79   _POSIX_Threads_Manager_initialization(
    80     api->maximum_threads,
    81     api->number_of_initialization_threads,
    82     api->User_initialization_threads_table
    83   );
    84 
    85   _POSIX_Condition_variables_Manager_initialization(
    86     api->maximum_condition_variables
    87   );
    88 
    89   _POSIX_Key_Manager_initialization( api->maximum_keys );
    90 
    91   _POSIX_Mutex_Manager_initialization( api->maximum_mutexes );
    92 
    93   _POSIX_Message_queue_Manager_initialization( api->maximum_message_queues );
    94 
    95   _POSIX_Semaphore_Manager_initialization( api->maximum_semaphores );
    96 
    97   _POSIX_Timer_Manager_initialization( api->maximum_timers );
    98 
    99   _POSIX_Barrier_Manager_initialization( api->maximum_barriers );
    100 
    101   _POSIX_RWLock_Manager_initialization( api->maximum_rwlocks );
    102 
    103   _POSIX_Spinlock_Manager_initialization(api->maximum_spinlocks);
     77  _POSIX_signals_Manager_Initialization();
     78  _POSIX_Threads_Manager_initialization();
     79  _POSIX_Condition_variables_Manager_initialization();
     80  _POSIX_Key_Manager_initialization();
     81  _POSIX_Mutex_Manager_initialization();
     82  _POSIX_Message_queue_Manager_initialization();
     83  _POSIX_Semaphore_Manager_initialization();
     84  _POSIX_Timer_Manager_initialization();
     85  _POSIX_Barrier_Manager_initialization();
     86  _POSIX_RWLock_Manager_initialization();
     87  _POSIX_Spinlock_Manager_initialization();
    10488}
    10589
Note: See TracChangeset for help on using the changeset viewer.