2006-11-17 Joel Sherrill <joel@OARcorp.com>

* score/inline/rtems/score/object.inl, score/src/objectnametoid.c:
	Properly honor searching only local node even when on single CPU
	system.
This commit is contained in:
Joel Sherrill
2006-11-17 22:59:41 +00:00
parent 28c55e4218
commit 7f3d6fe91c
3 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* score/inline/rtems/score/object.inl, score/src/objectnametoid.c:
Properly honor searching only local node even when on single CPU
system.
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* score/src/coresemseize.c: Add missing ISR enable.

View File

@@ -116,7 +116,6 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_class_valid(
return TRUE; /* the_class && the_class <= OBJECTS_CLASSES_LAST; */
}
#if defined(RTEMS_MULTIPROCESSING)
/**
* This function returns TRUE if the node is of the local object, and
* FALSE otherwise.
@@ -133,7 +132,6 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node(
{
return ( node == _Objects_Local_node );
}
#endif
/**
* This function returns TRUE if the id is of a local object, and

View File

@@ -69,10 +69,9 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id(
search_local_node = FALSE;
if ( information->maximum != 0 &&
(node == OBJECTS_SEARCH_ALL_NODES || node == OBJECTS_SEARCH_LOCAL_NODE
#if defined(RTEMS_MULTIPROCESSING)
|| _Objects_Is_local_node( node )
#endif
(node == OBJECTS_SEARCH_ALL_NODES ||
node == OBJECTS_SEARCH_LOCAL_NODE ||
_Objects_Is_local_node( node )
))
search_local_node = TRUE;