diff options
author | Gedare Bloom <gedare@rtems.org> | 2011-11-26 18:10:39 +0000 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2011-11-26 18:10:39 +0000 |
commit | e3a1488ab69f8e5b71718e4341e6c941d6984cd1 (patch) | |
tree | 8b5a410501e4612eb0ab2436a126cc13baf09fab /cpukit | |
parent | 2011-11-26 Gedare Bloom <gedare@rtems.org> (diff) | |
download | rtems-e3a1488ab69f8e5b71718e4341e6c941d6984cd1.tar.bz2 |
2011-11-26 Gedare Bloom <gedare@rtems.org>
PR 1964
* score/inline/rtems/score/chain.inl: Fix chain is first and last.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/inline/rtems/score/chain.inl | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4ed9910c8d..1c575a1a58 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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 diff --git a/cpukit/score/inline/rtems/score/chain.inl b/cpukit/score/inline/rtems/score/chain.inl index ae6fd38b43..15dad9098b 100644 --- a/cpukit/score/inline/rtems/score/chain.inl +++ b/cpukit/score/inline/rtems/score/chain.inl @@ -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 |