From e06ecec5182bd9ca37e78eb1ae7a5a0ba16afe31 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Dec 2008 22:12:24 +0000 Subject: 2008-12-17 Joel Sherrill * 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. --- cpukit/itron/src/itronsem.c | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'cpukit/itron/src/itronsem.c') 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 - +#include #include #include #include @@ -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) -- cgit v1.2.3