diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-11-22 19:14:51 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-14 07:03:29 +0100 |
commit | 21275b58a5a69c3c838082ffc8a7a3641f32ea9a (patch) | |
tree | d331e17c15d71f107d0f14581a93ddf768b05813 /cpukit/score/src/freechain.c | |
parent | rtems: Use object information to get config max (diff) | |
download | rtems-21275b58a5a69c3c838082ffc8a7a3641f32ea9a.tar.bz2 |
score: Static Objects_Information initialization
Statically allocate the objects information together with the initial
set of objects either via <rtems/confdefs.h>. Provide default object
informations with zero objects via librtemscpu.a. This greatly
simplifies the workspace size estimate. RTEMS applications which do not
use the unlimited objects option are easier to debug since all objects
reside now in statically allocated objects of the right types.
Close #3621.
Diffstat (limited to 'cpukit/score/src/freechain.c')
-rw-r--r-- | cpukit/score/src/freechain.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cpukit/score/src/freechain.c b/cpukit/score/src/freechain.c index 68786b1d7a..57ba293d4b 100644 --- a/cpukit/score/src/freechain.c +++ b/cpukit/score/src/freechain.c @@ -20,31 +20,6 @@ #include <rtems/score/freechain.h> #include <rtems/score/assert.h> -#include <rtems/score/chainimpl.h> - -void _Freechain_Initialize( - Freechain_Control *freechain, - Freechain_Allocator allocator, - size_t number_nodes, - size_t node_size -) -{ - void *starting_address; - - if ( number_nodes > 0 ) { - starting_address = ( *allocator )( number_nodes * node_size ); - number_nodes *= ( starting_address != NULL ); - } else { - starting_address = NULL; - } - - _Chain_Initialize( - &freechain->Free, - starting_address, - number_nodes, - node_size - ); -} void *_Freechain_Get( Freechain_Control *freechain, |