summaryrefslogtreecommitdiffstats
path: root/rtems_init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-15 21:11:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-15 21:11:44 +0000
commit87a21372dcb04e77f91e1333cd8e5a297fbe59b0 (patch)
tree211058857728084823716edb3f1123764f79f69d /rtems_init.c
parent2009-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadada-examples-87a21372dcb04e77f91e1333cd8e5a297fbe59b0.tar.bz2
2009-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems_init.c: New example. Runs on qemu. * networkconfig-qemu.h: New file.
Diffstat (limited to 'rtems_init.c')
-rw-r--r--rtems_init.c7
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