summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-29 16:39:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-29 16:39:01 +0000
commit62bf651fe57c28c271ec8b5e9790e5bff78dfc53 (patch)
tree1b303eeef958c5ca4d1e5596b22e2b4a100da021 /cpukit/posix
parentfixed typo .. changed == to != (diff)
downloadrtems-62bf651fe57c28c271ec8b5e9790e5bff78dfc53.tar.bz2
new file to support GNU Ada.
currently the only routine in this file simply returns the minimum stack size for each thread.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/adasupp.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/posix/src/adasupp.c b/cpukit/posix/src/adasupp.c
new file mode 100644
index 0000000000..740bf30132
--- /dev/null
+++ b/cpukit/posix/src/adasupp.c
@@ -0,0 +1,28 @@
+/*
+ * $Id$
+ */
+
+#include <assert.h>
+#include <errno.h>
+#include <pthread.h>
+
+#include <rtems/system.h>
+#include <rtems/score/stack.h>
+
+/*PAGE
+ *
+ * _ada_pthread_minimum_stack_size
+ *
+ * This routine returns the minimum stack size so the GNAT RTS can
+ * allocate enough stack for Ada tasks.
+ */
+
+size_t _ada_pthread_minimum_stack_size( void )
+{
+ /*
+ * Eventually this may need to include a per cpu family calculation
+ * but for now, this will do.
+ */
+
+ return STACK_MINIMUM_SIZE;
+}