diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-24 13:36:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-24 14:24:27 +0200 |
commit | a3fc33f8fafd4dc262c76efe0bc4972c2e820c9b (patch) | |
tree | b5883f7c2377895c33f28b077592cf8b534475dd | |
parent | bsp/gen5200: Simplify interrupt write support (diff) | |
download | rtems-a3fc33f8fafd4dc262c76efe0bc4972c2e820c9b.tar.bz2 |
score: Assert proper node size
-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-- ) { |