summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
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/src
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/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
10 files changed, 67 insertions, 113 deletions
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 */