From 32991495b48d1b5e4804b2f10a67a800f4608e75 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Dec 2019 16:03:11 +0100 Subject: score: Statically allocate idle/MPCI stacks Place idle and MPCI stacks into extra linker sections. This can be optionally used by applications to control the placement of the stacks. Update #3835. --- cpukit/score/src/mpci.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src/mpci.c') diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 1f9b838796..f173eeb588 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -135,11 +135,10 @@ static void _MPCI_Create_server( void ) config.budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; config.is_fp = CPU_ALL_TASKS_ARE_FP; config.stack_size = _Stack_Minimum() + + _MPCI_Configuration.extra_mpci_receive_server_stack + CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK - + _MPCI_Configuration.extra_mpci_receive_server_stack; - config.stack_size = _Stack_Extend_size( config.stack_size, config.is_fp ); - config.stack_area = _Stack_Allocate( config.stack_size ); - _Assert( config.stack_area != NULL ); + + CPU_ALL_TASKS_ARE_FP * CONTEXT_FP_SIZE; + config.stack_area = _MPCI_Receive_server_stack; ok = _Thread_Initialize( &_Thread_Information, -- cgit v1.2.3