Commit 11858d59 authored by yoogx's avatar yoogx
Browse files

* (_ada_pthread_minimum_stack_size): new helper function, required

      for RTEMS 4.11 and above
parent db5c41c7
/* /*
* COPYRIGHT (c) 1989-2007. * COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
...@@ -122,7 +122,7 @@ void parse_arguments( ...@@ -122,7 +122,7 @@ void parse_arguments(
} }
printf( "\n" ); printf( "\n" );
} }
#endif #endif
} }
...@@ -134,7 +134,7 @@ void parse_arguments( ...@@ -134,7 +134,7 @@ void parse_arguments(
* of the "Ada environment task". Otherwise, we would be * of the "Ada environment task". Otherwise, we would be
* stuck with the defaults set by RTEMS. * stuck with the defaults set by RTEMS.
*/ */
void *start_gnat_main( void * argument ) void *start_gnat_main( void * argument )
{ {
extern int gnat_main ( int argc, char **argv, char **envp ); extern int gnat_main ( int argc, char **argv, char **envp );
...@@ -258,3 +258,13 @@ void *POSIX_Init( void *argument ) ...@@ -258,3 +258,13 @@ void *POSIX_Init( void *argument )
void _flush_cache() {} void _flush_cache() {}
#include <rtems/confdefs.h> #include <rtems/confdefs.h>
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 CONFIGURE_MINIMUM_TASK_STACK_SIZE * 2;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment