diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-29 16:39:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-29 16:39:01 +0000 |
commit | 62bf651fe57c28c271ec8b5e9790e5bff78dfc53 (patch) | |
tree | 1b303eeef958c5ca4d1e5596b22e2b4a100da021 | |
parent | fixed typo .. changed == to != (diff) | |
download | rtems-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.
-rw-r--r-- | c/src/exec/posix/src/adasupp.c | 28 | ||||
-rw-r--r-- | cpukit/posix/src/adasupp.c | 28 |
2 files changed, 56 insertions, 0 deletions
diff --git a/c/src/exec/posix/src/adasupp.c b/c/src/exec/posix/src/adasupp.c new file mode 100644 index 0000000000..740bf30132 --- /dev/null +++ b/c/src/exec/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; +} 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; +} |