summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/object.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 22:46:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-17 22:46:05 +0000
commit790b50b8da754eba39e2c21d67bb9b14df966080 (patch)
tree7f8386fb4eb796d8dc60e421e07f9059278012d2 /cpukit/score/src/object.c
parent2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-790b50b8da754eba39e2c21d67bb9b14df966080.tar.bz2
2008-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/extension.h, sapi/include/rtems/io.h, sapi/src/exinit.c, sapi/src/extension.c, sapi/src/io.c, score/include/rtems/score/mpci.h, score/include/rtems/score/object.h, score/include/rtems/score/thread.h, score/include/rtems/score/tod.h, score/include/rtems/score/userext.h, score/include/rtems/score/wkspace.h, score/src/coretod.c, score/src/mpci.c, score/src/object.c, score/src/thread.c, score/src/userext.c, score/src/wkspace.c: Convert SAPI manager and SuperCore Handler initialization routines to directly pull parameters from configuration table.
Diffstat (limited to 'cpukit/score/src/object.c')
-rw-r--r--cpukit/score/src/object.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/cpukit/score/src/object.c b/cpukit/score/src/object.c
index 9be6f89c95..f34739aa67 100644
--- a/cpukit/score/src/object.c
+++ b/cpukit/score/src/object.c
@@ -2,7 +2,7 @@
* Object Handler
*
*
- * COPYRIGHT (c) 1989-2007.
+ * 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/address.h>
#include <rtems/score/chain.h>
#include <rtems/score/object.h>
@@ -34,24 +35,22 @@
*
* This routine initializes the object handler.
*
- * Input parameters:
- * node - local node
- * maximum_nodes - number of nodes in the system
- * maximum_global_objects - number of configured global objects
+ * Input parameters: NONE
*
* Output parameters: NONE
*/
-#if defined(RTEMS_MULTIPROCESSING)
-void _Objects_Handler_initialization(
- uint32_t node,
- uint32_t maximum_nodes,
- uint32_t maximum_global_objects )
-#else
void _Objects_Handler_initialization(void)
-#endif
{
#if defined(RTEMS_MULTIPROCESSING)
+ uint32_t node;
+ uint32_t maximum_nodes;
+ uint32_t maximum_global_objects;
+
+ node = _Configuration_MP_table->node;
+ maximum_nodes = _Configuration_MP_table->maximum_nodes;
+ maximum_global_objects = _Configuration_MP_table->maximum_global_objects;
+
if ( node < 1 || node > maximum_nodes )
_Internal_error_Occurred(
INTERNAL_ERROR_CORE,