summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 20:21:40 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 20:21:40 +0000
commitdb80f11c9c06e59dddc316566f3e0982b8195cc5 (patch)
treec16c0a2bef03dab039c22236a2c84605a0c05905 /cpukit/rtems
parentAdd sim/m32c hack to work around build vs. host CC bugs. (diff)
downloadrtems-db80f11c9c06e59dddc316566f3e0982b8195cc5.tar.bz2
2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/Makefile.am2
-rw-r--r--cpukit/rtems/include/rtems/rtems/attr.h10
-rw-r--r--cpukit/rtems/include/rtems/rtems/barrier.h7
-rw-r--r--cpukit/rtems/include/rtems/rtems/dpmem.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/intr.h5
-rw-r--r--cpukit/rtems/include/rtems/rtems/message.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/part.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/ratemon.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/region.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/sem.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/tasks.h4
-rw-r--r--cpukit/rtems/include/rtems/rtems/timer.h4
-rw-r--r--cpukit/rtems/src/barrier.c13
-rw-r--r--cpukit/rtems/src/dpmem.c13
-rw-r--r--cpukit/rtems/src/intr.c35
-rw-r--r--cpukit/rtems/src/msg.c24
-rw-r--r--cpukit/rtems/src/part.c14
-rw-r--r--cpukit/rtems/src/ratemon.c29
-rw-r--r--cpukit/rtems/src/region.c13
-rw-r--r--cpukit/rtems/src/rtemstimer.c13
-rw-r--r--cpukit/rtems/src/sem.c13
-rw-r--r--cpukit/rtems/src/tasks.c13
22 files changed, 77 insertions, 159 deletions
diff --git a/cpukit/rtems/Makefile.am b/cpukit/rtems/Makefile.am
index 7f4fa2ce97..400fc40ad7 100644
--- a/cpukit/rtems/Makefile.am
+++ b/cpukit/rtems/Makefile.am
@@ -78,7 +78,7 @@ librtems_a_SOURCES += src/ratemon.c src/ratemoncancel.c src/ratemoncreate.c \
src/ratemonperiod.c src/ratemontimeout.c src/ratemondata.c
## INTR_C_FILES
-librtems_a_SOURCES += src/intr.c src/intrbody.c src/intrcatch.c
+librtems_a_SOURCES += src/intrbody.c src/intrcatch.c
## BARRIER_C_FILES
librtems_a_SOURCES += src/barrier.c src/barriercreate.c src/barrierdelete.c \
diff --git a/cpukit/rtems/include/rtems/rtems/attr.h b/cpukit/rtems/include/rtems/rtems/attr.h
index a1c71e5ec9..693cfdbaa9 100644
--- a/cpukit/rtems/include/rtems/rtems/attr.h
+++ b/cpukit/rtems/include/rtems/rtems/attr.h
@@ -182,16 +182,6 @@ typedef uint32_t rtems_attribute;
#define ATTRIBUTES_REQUIRED 0
#endif
-/**
- * @brief _Attributes_Handler_initialization
- *
- * This routine performs initialization for this handler.
- *
- * NOTE: There is no initialization required in C. Conditional compilation
- * takes care of this in C.
- */
-#define _Attributes_Handler_initialization()
-
#ifndef __RTEMS_APPLICATION__
#include <rtems/rtems/attr.inl>
#endif
diff --git a/cpukit/rtems/include/rtems/rtems/barrier.h b/cpukit/rtems/include/rtems/rtems/barrier.h
index c2a855666d..19e32e4a78 100644
--- a/cpukit/rtems/include/rtems/rtems/barrier.h
+++ b/cpukit/rtems/include/rtems/rtems/barrier.h
@@ -76,13 +76,8 @@ RTEMS_BARRIER_EXTERN Objects_Information _Barrier_Information;
* @brief _Barrier_Manager_initialization
*
* This routine performs the initialization necessary for this manager.
- *
- * @param[in] maximum_barriers is the total number of barriers allowed to
- * concurrently be active in the system.
*/
-void _Barrier_Manager_initialization(
- uint32_t maximum_barriers
-);
+void _Barrier_Manager_initialization(void);
/**
* @brief rtems_barrier_create
diff --git a/cpukit/rtems/include/rtems/rtems/dpmem.h b/cpukit/rtems/include/rtems/rtems/dpmem.h
index 5a862c6984..3c4dce1499 100644
--- a/cpukit/rtems/include/rtems/rtems/dpmem.h
+++ b/cpukit/rtems/include/rtems/rtems/dpmem.h
@@ -81,9 +81,7 @@ RTEMS_DPMEM_EXTERN Objects_Information _Dual_ported_memory_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Dual_ported_memory_Manager_initialization(
- uint32_t maximum_ports
-);
+void _Dual_ported_memory_Manager_initialization(void);
/**
* @brief rtems_port_create
diff --git a/cpukit/rtems/include/rtems/rtems/intr.h b/cpukit/rtems/include/rtems/rtems/intr.h
index 5482193b04..ec4c1fcdd8 100644
--- a/cpukit/rtems/include/rtems/rtems/intr.h
+++ b/cpukit/rtems/include/rtems/rtems/intr.h
@@ -58,11 +58,6 @@ typedef rtems_isr ( *rtems_isr_entry )(
);
/**
- * @brief Initializes the Interrupt Manager.
- */
-void _Interrupt_Manager_initialization( void );
-
-/**
* @brief Implementation of the rtems_interrupt_catch directive.
*
* This directive installs @a new_isr_handler as the RTEMS interrupt service
diff --git a/cpukit/rtems/include/rtems/rtems/message.h b/cpukit/rtems/include/rtems/rtems/message.h
index ec1a2c5104..aab42b6b1f 100644
--- a/cpukit/rtems/include/rtems/rtems/message.h
+++ b/cpukit/rtems/include/rtems/rtems/message.h
@@ -101,9 +101,7 @@ RTEMS_MESSAGE_EXTERN Objects_Information _Message_queue_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Message_queue_Manager_initialization(
- uint32_t maximum_message_queues
-);
+void _Message_queue_Manager_initialization(void);
/**
* @brief rtems_message_queue_create
diff --git a/cpukit/rtems/include/rtems/rtems/part.h b/cpukit/rtems/include/rtems/rtems/part.h
index 32b23ded6b..65493c8ce6 100644
--- a/cpukit/rtems/include/rtems/rtems/part.h
+++ b/cpukit/rtems/include/rtems/rtems/part.h
@@ -88,9 +88,7 @@ RTEMS_PART_EXTERN Objects_Information _Partition_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Partition_Manager_initialization(
- uint32_t maximum_partitions
-);
+void _Partition_Manager_initialization(void);
/**
* @brief rtems_partition_create
diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h b/cpukit/rtems/include/rtems/rtems/ratemon.h
index e0111d6c71..2959acea72 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemon.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
@@ -278,9 +278,7 @@ RTEMS_RATEMON_EXTERN Objects_Information _Rate_monotonic_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Rate_monotonic_Manager_initialization(
- uint32_t maximum_periods
-);
+void _Rate_monotonic_Manager_initialization(void);
/**
* @brief rtems_rate_monotonic_create
diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h
index 085b317a2c..34be2518d6 100644
--- a/cpukit/rtems/include/rtems/rtems/region.h
+++ b/cpukit/rtems/include/rtems/rtems/region.h
@@ -88,9 +88,7 @@ RTEMS_REGION_EXTERN Objects_Information _Region_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Region_Manager_initialization(
- uint32_t maximum_regions
-);
+void _Region_Manager_initialization(void);
/**
* @brief rtems_region_create
diff --git a/cpukit/rtems/include/rtems/rtems/sem.h b/cpukit/rtems/include/rtems/rtems/sem.h
index d6385b9e64..e7ded959c6 100644
--- a/cpukit/rtems/include/rtems/rtems/sem.h
+++ b/cpukit/rtems/include/rtems/rtems/sem.h
@@ -108,9 +108,7 @@ RTEMS_SEM_EXTERN Objects_Information _Semaphore_Information;
*
* This routine performs the initialization necessary for this manager.
*/
-void _Semaphore_Manager_initialization(
- uint32_t maximum_semaphores
-);
+void _Semaphore_Manager_initialization(void);
/**
* @brief rtems_semaphore_create
diff --git a/cpukit/rtems/include/rtems/rtems/tasks.h b/cpukit/rtems/include/rtems/rtems/tasks.h
index 07b78f465b..5aa1475f70 100644
--- a/cpukit/rtems/include/rtems/rtems/tasks.h
+++ b/cpukit/rtems/include/rtems/rtems/tasks.h
@@ -241,9 +241,7 @@ extern void (*_RTEMS_tasks_Initialize_user_tasks_p)(void);
*
* This routine initializes all Task Manager related data structures.
*/
-void _RTEMS_tasks_Manager_initialization(
- uint32_t maximum_tasks
-);
+void _RTEMS_tasks_Manager_initialization(void);
/**
* @brief rtems_task_create
diff --git a/cpukit/rtems/include/rtems/rtems/timer.h b/cpukit/rtems/include/rtems/rtems/timer.h
index 711995e983..357eb1b418 100644
--- a/cpukit/rtems/include/rtems/rtems/timer.h
+++ b/cpukit/rtems/include/rtems/rtems/timer.h
@@ -148,9 +148,7 @@ typedef struct {
*
* This routine performs the initialization necessary for this manager.
*/
-void _Timer_Manager_initialization(
- uint32_t maximum_timers
-);
+void _Timer_Manager_initialization(void);
/**
* @brief rtems_timer_create
diff --git a/cpukit/rtems/src/barrier.c b/cpukit/rtems/src/barrier.c
index bc57a390c4..5665e4e9d9 100644
--- a/cpukit/rtems/src/barrier.c
+++ b/cpukit/rtems/src/barrier.c
@@ -13,7 +13,7 @@
* + acquire a barrier
* + release a barrier
*
- * COPYRIGHT (c) 1989-2006.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -28,6 +28,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/object.h>
@@ -39,21 +40,19 @@
/**
* @brief _Barrier_Manager_initialization
*
- * Input parameters:
- * maximum_barriers - maximum configured barriers
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Barrier_Manager_initialization(
- uint32_t maximum_barriers
-)
+void _Barrier_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Barrier_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_BARRIERS, /* object class */
- maximum_barriers, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_barriers,
+ /* maximum objects of this class */
sizeof( Barrier_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 */
diff --git a/cpukit/rtems/src/dpmem.c b/cpukit/rtems/src/dpmem.c
index 6e730e6f75..aae4f2b42a 100644
--- a/cpukit/rtems/src/dpmem.c
+++ b/cpukit/rtems/src/dpmem.c
@@ -1,7 +1,7 @@
/*
* Dual Port Memory Manager
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -16,6 +16,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/address.h>
@@ -30,21 +31,19 @@
* This routine initializes all dual-ported memory manager related
* data structures.
*
- * Input parameters:
- * maximum_ports - number of ports to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Dual_ported_memory_Manager_initialization(
- uint32_t maximum_ports
-)
+void _Dual_ported_memory_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Dual_ported_memory_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_PORTS, /* object class */
- maximum_ports, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_ports,
+ /* maximum objects of this class */
sizeof( Dual_ported_memory_Control ),
/* size of this object's control block */
FALSE, /* TRUE if names of this object are strings */
diff --git a/cpukit/rtems/src/intr.c b/cpukit/rtems/src/intr.c
deleted file mode 100644
index ee5f27f6ac..0000000000
--- a/cpukit/rtems/src/intr.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Interrupt Manager
- *
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/rtems/status.h>
-#include <rtems/score/isr.h>
-#include <rtems/rtems/intr.h>
-
-/* _Interrupt_Manager_initialization
- *
- * This routine initializes the interrupt manager.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- */
-
-void _Interrupt_Manager_initialization( void )
-{
-}
diff --git a/cpukit/rtems/src/msg.c b/cpukit/rtems/src/msg.c
index 555c40e64f..de8b42bf08 100644
--- a/cpukit/rtems/src/msg.c
+++ b/cpukit/rtems/src/msg.c
@@ -2,7 +2,7 @@
* Message Queue Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/chain.h>
#include <rtems/score/isr.h>
@@ -41,29 +42,28 @@
* This routine initializes all message queue manager related
* data structures.
*
- * Input parameters:
- * maximum_message_queues - number of message queues to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Message_queue_Manager_initialization(
- uint32_t maximum_message_queues
-)
+void _Message_queue_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Message_queue_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_MESSAGE_QUEUES, /* object class */
- maximum_message_queues, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_message_queues,
+ /* maximum objects of this class */
sizeof( Message_queue_Control ),
- /* size of this object's control block */
- FALSE, /* TRUE if names of this object are strings */
- RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
+ /* size of this object's control block */
+ FALSE, /* TRUE if names of this object are strings */
+ RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */
#if defined(RTEMS_MULTIPROCESSING)
,
- TRUE, /* TRUE if this is a global object class */
- _Message_queue_MP_Send_extract_proxy /* Proxy extraction support callout */
+ TRUE, /* TRUE if this is a global object class */
+ _Message_queue_MP_Send_extract_proxy
+ /* Proxy extraction support callout */
#endif
);
diff --git a/cpukit/rtems/src/part.c b/cpukit/rtems/src/part.c
index 35bd043679..ab23479b8b 100644
--- a/cpukit/rtems/src/part.c
+++ b/cpukit/rtems/src/part.c
@@ -1,8 +1,7 @@
/*
* Partition Manager
*
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +16,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/address.h>
@@ -32,21 +32,19 @@
* This routine initializes all partition manager related
* data structures.
*
- * Input parameters:
- * maximum_partitions - number of partitions to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Partition_Manager_initialization(
- uint32_t maximum_partitions
-)
+void _Partition_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Partition_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_PARTITIONS, /* object class */
- maximum_partitions, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_partitions,
+ /* maximum objects of this class */
sizeof( Partition_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 */
diff --git a/cpukit/rtems/src/ratemon.c b/cpukit/rtems/src/ratemon.c
index 647ee10e4a..4c71f5d99c 100644
--- a/cpukit/rtems/src/ratemon.c
+++ b/cpukit/rtems/src/ratemon.c
@@ -2,7 +2,7 @@
* Rate Monotonic Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/isr.h>
@@ -31,8 +32,7 @@
* This routine initializes all Rate Monotonic Manager related
* data structures.
*
- * Input parameters:
- * maximum_periods - number of periods timers to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*
@@ -40,22 +40,21 @@
* Handler.
*/
-void _Rate_monotonic_Manager_initialization(
- uint32_t maximum_periods
-)
+void _Rate_monotonic_Manager_initialization(void)
{
_Objects_Initialize_information(
- &_Rate_monotonic_Information, /* object information table */
- OBJECTS_CLASSIC_API, /* object API */
- OBJECTS_RTEMS_PERIODS, /* object class */
- maximum_periods, /* maximum objects of this class */
- sizeof( Rate_monotonic_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 */
+ &_Rate_monotonic_Information, /* object information table */
+ OBJECTS_CLASSIC_API, /* object API */
+ OBJECTS_RTEMS_PERIODS, /* object class */
+ Configuration_RTEMS_API.maximum_periods,
+ /* maximum objects of this class */
+ sizeof( Rate_monotonic_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 */
#if defined(RTEMS_MULTIPROCESSING)
,
- FALSE, /* TRUE if this is a global object class */
- NULL /* Proxy extraction support callout */
+ FALSE, /* TRUE if this is a global object class */
+ NULL /* Proxy extraction support callout */
#endif
);
}
diff --git a/cpukit/rtems/src/region.c b/cpukit/rtems/src/region.c
index f95d109049..4811412cfb 100644
--- a/cpukit/rtems/src/region.c
+++ b/cpukit/rtems/src/region.c
@@ -2,7 +2,7 @@
* Region Manager
*
*
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/object.h>
@@ -32,21 +33,19 @@
*
* This routine initializes all region manager related data structures.
*
- * Input parameters:
- * maximum_regions - number of regions to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Region_Manager_initialization(
- uint32_t maximum_regions
-)
+void _Region_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Region_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_REGIONS, /* object class */
- maximum_regions, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_regions,
+ /* maximum objects of this class */
sizeof( Region_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 */
diff --git a/cpukit/rtems/src/rtemstimer.c b/cpukit/rtems/src/rtemstimer.c
index a7dd750656..179e99c7aa 100644
--- a/cpukit/rtems/src/rtemstimer.c
+++ b/cpukit/rtems/src/rtemstimer.c
@@ -2,7 +2,7 @@
* Timer Manager
*
*
- * COPYRIGHT (c) 1989-2002.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,7 @@
#endif
#include <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/score/object.h>
@@ -31,21 +32,19 @@
*
* This routine initializes all timer manager related data structures.
*
- * Input parameters:
- * maximum_timers - number of timers to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _Timer_Manager_initialization(
- uint32_t maximum_timers
-)
+void _Timer_Manager_initialization(void)
{
_Objects_Initialize_information(
&_Timer_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_TIMERS, /* object class */
- maximum_timers, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_timers ,
+ /* maximum objects of this class */
sizeof( Timer_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 */
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 <rtems/system.h>
+#include <rtems/config.h>
#include <rtems/rtems/status.h>
#include <rtems/rtems/support.h>
#include <rtems/rtems/attr.h>
@@ -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 */
diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c
index 2ccacd677e..4091720eb0 100644
--- a/cpukit/rtems/src/tasks.c
+++ b/cpukit/rtems/src/tasks.c
@@ -1,7 +1,7 @@
/*
* RTEMS Task Manager -- Initialize Manager
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -241,22 +241,19 @@ User_extensions_Control _RTEMS_tasks_User_extensions = {
*
* This routine initializes all Task Manager related data structures.
*
- * Input parameters:
- * maximum_tasks - number of tasks to initialize
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-void _RTEMS_tasks_Manager_initialization(
- uint32_t maximum_tasks
-)
+void _RTEMS_tasks_Manager_initialization(void)
{
-
_Objects_Initialize_information(
&_RTEMS_tasks_Information, /* object information table */
OBJECTS_CLASSIC_API, /* object API */
OBJECTS_RTEMS_TASKS, /* object class */
- maximum_tasks, /* maximum objects of this class */
+ Configuration_RTEMS_API.maximum_tasks,
+ /* maximum objects of this class */
sizeof( Thread_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 */