2011-11-26 Gedare Bloom <gedare@rtems.org>

PR 1964
	* score/inline/rtems/score/chain.inl: Fix chain is first and last.
This commit is contained in:
Gedare Bloom
2011-11-26 18:10:39 +00:00
parent b431b6635d
commit e3a1488ab6
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2011-11-26 Gedare Bloom <gedare@rtems.org>
PR 1964
* score/inline/rtems/score/chain.inl: Fix chain is first and last.
2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* sapi/include/confdefs.h: Added a bsp override option for

View File

@@ -297,7 +297,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_first(
const Chain_Node *the_node
)
{
return (the_node->previous == NULL);
return (the_node->previous->previous == NULL);
}
/** @brief Is this the Last Node on the Chain
@@ -314,7 +314,7 @@ RTEMS_INLINE_ROUTINE bool _Chain_Is_last(
const Chain_Node *the_node
)
{
return (the_node->next == NULL);
return (the_node->next->next == NULL);
}
/** @brief Does this Chain have only One Node