diff options
Diffstat (limited to 'rtems_init.c')
-rw-r--r-- | rtems_init.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rtems_init.c b/rtems_init.c index f73e156..3c7efbb 100644 --- a/rtems_init.c +++ b/rtems_init.c @@ -248,8 +248,13 @@ void *POSIX_Init( void *argument ) #define CONFIGURE_MAXIMUM_FAKE_ADA_TASKS 0 #endif +#if !defined(ADA_APPLICATION_NEEDS_EXTRA_MEMORY) + #define ADA_APPLICATION_NEEDS_EXTRA_MEMORY 0 +#endif + /* Account for any extra task stack size */ -#define CONFIGURE_MEMORY_OVERHEAD (GNAT_MAIN_STACKSPACE) +#define CONFIGURE_MEMORY_OVERHEAD \ + (ADA_APPLICATION_NEEDS_EXTRA_MEMORY + GNAT_MAIN_STACKSPACE) /* Make sure the C Program Heap and Workspace are zeroed for GNAT */ #define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY TRUE |