forked from Imagelibrary/rtems
new file to support GNU Ada.
currently the only routine in this file simply returns the minimum stack size for each thread.
This commit is contained in:
28
c/src/exec/posix/src/adasupp.c
Normal file
28
c/src/exec/posix/src/adasupp.c
Normal file
@@ -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;
|
||||
}
|
||||
28
cpukit/posix/src/adasupp.c
Normal file
28
cpukit/posix/src/adasupp.c
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user