diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-09 16:03:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-12 09:08:36 +0100 |
commit | 32991495b48d1b5e4804b2f10a67a800f4608e75 (patch) | |
tree | 2a05470107f3a8918689b9ed4c94760f08a2631a /cpukit/score/src/mpcidefault.c | |
parent | score: Move thread stack allocation (diff) | |
download | rtems-32991495b48d1b5e4804b2f10a67a800f4608e75.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/src/mpcidefault.c')
-rw-r--r-- | cpukit/score/src/mpcidefault.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/score/src/mpcidefault.c b/cpukit/score/src/mpcidefault.c index fad806c5c1..395515759b 100644 --- a/cpukit/score/src/mpcidefault.c +++ b/cpukit/score/src/mpcidefault.c @@ -19,6 +19,7 @@ #endif #include <rtems/score/mpci.h> +#include <rtems/score/context.h> #include <rtems/score/objectdata.h> #include <rtems/score/stack.h> #include <rtems/score/thread.h> @@ -35,3 +36,10 @@ const MPCI_Configuration _MPCI_Configuration = { STACK_MINIMUM_SIZE, /* MPCI receive server stack size */ NULL /* pointer to MPCI address table */ }; + +char _MPCI_Receive_server_stack[ + STACK_MINIMUM_SIZE + + CPU_MPCI_RECEIVE_SERVER_EXTRA_STACK + + CPU_ALL_TASKS_ARE_FP * CONTEXT_FP_SIZE +] RTEMS_ALIGNED( CPU_INTERRUPT_STACK_ALIGNMENT ) +RTEMS_SECTION( ".rtemsstack.mpci" ); |