score: Assert proper node size

This commit is contained in:
Sebastian Huber
2015-06-24 13:36:40 +02:00
parent df8341ae30
commit a3fc33f8fa

View File

@@ -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-- ) {