diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-17 22:12:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-17 22:12:24 +0000 |
commit | e06ecec5182bd9ca37e78eb1ae7a5a0ba16afe31 (patch) | |
tree | b08afe48ff7d79cdac5ac798b64a7ef6c44b6e7e /cpukit/itron/src/itronsem.c | |
parent | 2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-e06ecec5182bd9ca37e78eb1ae7a5a0ba16afe31.tar.bz2 |
2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* itron/include/rtems/itron/config.h,
itron/include/rtems/itron/eventflags.h,
itron/include/rtems/itron/fmempool.h,
itron/include/rtems/itron/mbox.h,
itron/include/rtems/itron/msgbuffer.h,
itron/include/rtems/itron/port.h,
itron/include/rtems/itron/semaphore.h,
itron/include/rtems/itron/task.h,
itron/include/rtems/itron/vmempool.h, itron/src/eventflags.c,
itron/src/fmempool.c, itron/src/itroninittasks.c,
itron/src/itronsem.c, itron/src/mbox.c, itron/src/msgbuffer.c,
itron/src/port.c, itron/src/task.c, itron/src/vmempool.c,
sapi/src/itronapi.c: Convert ITRON manager initialization routines to
directly pull parameters from configuration table.
Diffstat (limited to '')
-rw-r--r-- | cpukit/itron/src/itronsem.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/cpukit/itron/src/itronsem.c b/cpukit/itron/src/itronsem.c index 755b3fe840..3a16199d05 100644 --- a/cpukit/itron/src/itronsem.c +++ b/cpukit/itron/src/itronsem.c @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -14,7 +14,7 @@ #endif #include <rtems/itron.h> - +#include <rtems/config.h> #include <rtems/itron/semaphore.h> #include <rtems/itron/task.h> #include <rtems/score/tod.h> @@ -26,22 +26,20 @@ * * This routine initializes all semaphore manager related data structures. * - * Input parameters: - * maximum_semaphores - maximum configured semaphores + * Input parameters: NONE * * Output parameters: NONE */ -void _ITRON_Semaphore_Manager_initialization( - uint32_t maximum_semaphores -) +void _ITRON_Semaphore_Manager_initialization(void) { _Objects_Initialize_information( - &_ITRON_Semaphore_Information, /* object information table */ - OBJECTS_ITRON_API, /* object API */ - OBJECTS_ITRON_SEMAPHORES, /* object class */ - maximum_semaphores, /* maximum objects of this class */ - sizeof( ITRON_Semaphore_Control ), /* size of this object's control block */ + &_ITRON_Semaphore_Information, /* object information table */ + OBJECTS_ITRON_API, /* object API */ + OBJECTS_ITRON_SEMAPHORES, /* object class */ + Configuration_ITRON_API.maximum_semaphores, + /* maximum objects of this class */ + sizeof(ITRON_Semaphore_Control), /* size of this object's control block */ FALSE, /* TRUE if names for this object are strings */ ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ #if defined(RTEMS_MULTIPROCESSING) |