diff options
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/chain.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/score/src/chain.c b/cpukit/score/src/chain.c index f3722fa720..7f7af71706 100644 --- a/cpukit/score/src/chain.c +++ b/cpukit/score/src/chain.c @@ -19,10 +19,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/score/address.h> #include <rtems/score/chainimpl.h> -#include <rtems/score/isr.h> +#include <rtems/score/address.h> +#include <rtems/score/assert.h> void _Chain_Initialize( Chain_Control *the_chain, @@ -37,6 +36,8 @@ void _Chain_Initialize( Chain_Node *current = head; Chain_Node *next = starting_address; + _Assert( node_size >= sizeof( *next ) ); + head->previous = NULL; while ( count-- ) { |