[rtems commit] score: Debug aid for _Chain_Extract_unprotected()
Sebastian Huber
sebh at rtems.org
Mon Sep 10 09:35:51 UTC 2018
Module: rtems
Branch: master
Commit: ea0a680ac6b713a658bfe17955735bfc490e92d6
Changeset: http://git.rtems.org/rtems/commit/?id=ea0a680ac6b713a658bfe17955735bfc490e92d6
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Sep 10 10:36:41 2018 +0200
score: Debug aid for _Chain_Extract_unprotected()
Ensure that a chain node is not off chain while doing the chain extract.
---
cpukit/include/rtems/score/chainimpl.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/include/rtems/score/chainimpl.h b/cpukit/include/rtems/score/chainimpl.h
index c94c051..33ad999 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;
More information about the vc
mailing list