From db80f11c9c06e59dddc316566f3e0982b8195cc5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 17 Dec 2008 20:21:40 +0000 Subject: 2008-12-17 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. --- cpukit/rtems/src/sem.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'cpukit/rtems/src/sem.c') diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c index 96794ba821..4f8d7b0893 100644 --- a/cpukit/rtems/src/sem.c +++ b/cpukit/rtems/src/sem.c @@ -15,7 +15,7 @@ * + acquire a semaphore * + release a semaphore * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2008. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -30,6 +30,7 @@ #endif #include +#include #include #include #include @@ -55,21 +56,19 @@ * * This routine initializes all semaphore manager related data structures. * - * Input parameters: - * maximum_semaphores - maximum configured semaphores + * Input parameters: NONE * * Output parameters: NONE */ -void _Semaphore_Manager_initialization( - uint32_t maximum_semaphores -) +void _Semaphore_Manager_initialization(void) { _Objects_Initialize_information( &_Semaphore_Information, /* object information table */ OBJECTS_CLASSIC_API, /* object API */ OBJECTS_RTEMS_SEMAPHORES, /* object class */ - maximum_semaphores, /* maximum objects of this class */ + Configuration_RTEMS_API.maximum_semaphores, + /* maximum objects of this class */ sizeof( Semaphore_Control ), /* size of this object's control block */ FALSE, /* TRUE if the name is a string */ RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ -- cgit v1.2.3