summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-24 13:12:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-02-24 13:32:35 +0100
commitd138a7906a6ae75173be289bb01b0cd66ab76854 (patch)
treeb24293c0863b9b11c8edf4ef896d1ac79032e61f /cpukit/sapi
parentbsps: Change license to BSD-2-Clause of some files (diff)
downloadrtems-d138a7906a6ae75173be289bb01b0cd66ab76854.tar.bz2
config: Adjust stack allocator initialization
Use the right system initialization step for the stack allocator initialization. Do the stack allocator initialization before the workspace initialization so that _Memory_Allocate() can be used to get memory for the allocator.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/src/sysinitverbose.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/sapi/src/sysinitverbose.c b/cpukit/sapi/src/sysinitverbose.c
index 157889c814..d05f1de9b3 100644
--- a/cpukit/sapi/src/sysinitverbose.c
+++ b/cpukit/sapi/src/sysinitverbose.c
@@ -61,6 +61,7 @@ SYSINIT_VERBOSE( ZERO_MEMORY );
SYSINIT_VERBOSE( ISR_STACK );
SYSINIT_VERBOSE( PER_CPU_DATA );
SYSINIT_VERBOSE( SBRK );
+SYSINIT_VERBOSE( STACK_ALLOCATOR );
SYSINIT_VERBOSE( WORKSPACE );
SYSINIT_VERBOSE( MALLOC );
SYSINIT_VERBOSE( BSP_START );
@@ -233,9 +234,17 @@ static void _Sysinit_Verbose_SBRK( void )
}
}
+static void _Sysinit_Verbose_STACK_ALLOCATOR( void )
+{
+ if ( !SYSINIT_IS_ADJACENT( SBRK, STACK_ALLOCATOR ) ) {
+ _Sysinit_Print_free_memory();
+ printk( "sysinit: STACK_ALLOCATOR: done\n" );
+ }
+}
+
static void _Sysinit_Verbose_WORKSPACE( void )
{
- if ( !SYSINIT_IS_ADJACENT( SBRK, WORKSPACE ) ) {
+ if ( !SYSINIT_IS_ADJACENT( STACK_ALLOCATOR, WORKSPACE ) ) {
_Sysinit_Print_free_memory();
printk( "sysinit: WORKSPACE: done\n" );
}