summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/object.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-11-23 17:38:09 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-11-23 17:38:09 +0000
commit97e2729d1a3432b9792b82ce88ce6d804a104f7a (patch)
treece8c041ef504f965a4af05775af348c7023b19f9 /cpukit/score/src/object.c
parentAdded networking. (diff)
downloadrtems-97e2729d1a3432b9792b82ce88ce6d804a104f7a.tar.bz2
Added --disable-multiprocessing flag and modified a lot of files to make
it work.
Diffstat (limited to 'cpukit/score/src/object.c')
-rw-r--r--cpukit/score/src/object.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/score/src/object.c b/cpukit/score/src/object.c
index 7585235d3b..81bca89d7c 100644
--- a/cpukit/score/src/object.c
+++ b/cpukit/score/src/object.c
@@ -16,7 +16,9 @@
#include <rtems/system.h>
#include <rtems/score/chain.h>
#include <rtems/score/object.h>
+#if defined(RTEMS_MULTIPROCESSING)
#include <rtems/score/objectmp.h>
+#endif
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
#include <rtems/score/sysstate.h>
@@ -51,11 +53,13 @@ void _Objects_Handler_initialization(
_Objects_Local_node = node;
_Objects_Maximum_nodes = maximum_nodes;
+#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Handler_initialization(
node,
maximum_nodes,
maximum_global_objects
);
+#endif
}
/*PAGE
@@ -378,7 +382,11 @@ Objects_Name_to_id_errors _Objects_Name_to_id(
if ( _Objects_Is_local_node( node ) || node == OBJECTS_SEARCH_LOCAL_NODE )
return OBJECTS_INVALID_NAME;
+#if defined(RTEMS_MULTIPROCESSING)
return ( _Objects_MP_Global_name_search( information, name, node, id ) );
+#else
+ return OBJECTS_INVALID_NAME;
+#endif
}
/*PAGE
@@ -423,8 +431,12 @@ Objects_Control *_Objects_Get(
return( NULL );
}
*location = OBJECTS_ERROR;
+#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
+#else
+ return NULL;
+#endif
}