diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-10 10:36:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-09-10 10:38:44 +0200 |
commit | ea0a680ac6b713a658bfe17955735bfc490e92d6 (patch) | |
tree | 227e9900d598006f2e3b789a4a5e00bb373d8994 | |
parent | nfsclient: Fix unused variable warning (diff) | |
download | rtems-ea0a680ac6b713a658bfe17955735bfc490e92d6.tar.bz2 |
score: Debug aid for _Chain_Extract_unprotected()
Ensure that a chain node is not off chain while doing the chain extract.
-rw-r--r-- | cpukit/include/rtems/score/chainimpl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/chainimpl.h b/cpukit/include/rtems/score/chainimpl.h index c94c051198..33ad999376 100644 --- a/cpukit/include/rtems/score/chainimpl.h +++ b/cpukit/include/rtems/score/chainimpl.h @@ -562,6 +562,8 @@ RTEMS_INLINE_ROUTINE void _Chain_Extract_unprotected( Chain_Node *next; Chain_Node *previous; + _Assert( !_Chain_Is_node_off_chain( the_node ) ); + next = the_node->next; previous = the_node->previous; next->previous = previous; |